Module: FastHaml::RubyMultiline

Defined in:
lib/fast_haml/ruby_multiline.rb

Class Method Summary collapse

Class Method Details

.read(line_parser, current_text) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/fast_haml/ruby_multiline.rb', line 3

def self.read(line_parser, current_text)
  buf = []
  while is_ruby_multiline?(current_text)
    current_text = line_parser.next_line
    buf << current_text
  end
  buf.join(' ')
end