Method: Ld::Document#get_notes
- Defined in:
- lib/ld/document/document.rb
#get_notes(lines, i) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/ld/document/document.rb', line 24 def get_notes lines, i notes = [] (i-1).downto(0) do |j| arr = lines[j].split(' ') if arr[0] == '#=' notes << {title:arr[1], note:arr[2..(arr.size)].join(' ')} else return notes end end notes end |