Method: UnboundMethod::Source#get_above_comment
- Defined in:
- lib/executable/core_ext.rb
#get_above_comment(file, line) ⇒ Object
Get comment from file searching up from given line number.
40 41 42 |
# File 'lib/executable/core_ext.rb', line 40 def get_above_comment(file, line) get_above_comment_lines(file, line).join("\n").strip end |