JoshCheek / seeing_is_believing

Displays the results of every line of code in your file
1.31k stars 54 forks source link

Switch syntax checking to use pry's trick #38

Closed JoshCheek closed 9 years ago

JoshCheek commented 10 years ago

Love this trick in pry to check syntax: https://github.com/banister/method_source/blob/5e5c55642662c248e721282cc287b41a49778ee8/lib/method_source/code_helpers.rb#L58-72

Mine is pretty heavy-handed, and has a potential bug in it: https://github.com/JoshCheek/seeing_is_believing/blob/bbca512b99f2720bf03b13d5e97987eb1ac7fd8e/lib/seeing_is_believing/binary.rb#L165-177