banister/method_source — pull request #19 by ConradIrwin (2012-06-03 09:15:24+00:00)
Title: Import CodeHelpers from Pry

This takes all the various code-parsing helpers we had in method_source and Pry and boils them down to three functions that can be used from everywhere:

```ruby
include MethodSource::CodeHelpers
expression_at(file_contents, line_number)

comment_describing(file_contents, line_number)

complete_expression?(file_contents)
```

See https://github.com/pry/pry/commit/53f8507143525261f9636e7927bb9386aef685ee for the change we can make to pry when this gets pushed out.