Method: NanDoc::SpecDoc::CodeSnippet#file_lines
- Defined in:
- lib/nandoc/spec-doc/code-snippet.rb
#file_lines ⇒ Object
just hide all the lines from dumps to make irb debugging prettier
24 25 26 27 28 29 30 31 32 |
# File 'lib/nandoc/spec-doc/code-snippet.rb', line 24 def file_lines @lines_proc ||= begin stop_at_assert # not really appropriate here same_file_assert # not really appropriate here all_lines = File.open(@start_at[:file],'r').lines.map # sure why not proc{ all_lines } end @lines_proc.call end |