Class: Util::ControlParser

Inherits:
Parslet::Parser
  • Object
show all
Defined in:
lib/utilities/parser.rb

Instance Method Summary collapse

Instance Method Details

#line(ending) ⇒ Object



165
166
167
# File 'lib/utilities/parser.rb', line 165

def line(ending)
  line_body(ending)
end

#line_body(_ending) ⇒ Object



161
162
163
# File 'lib/utilities/parser.rb', line 161

def line_body(_ending)
  (attribute_absent >> any).repeat(1)
end

#lines(ending) ⇒ Object



169
170
171
# File 'lib/utilities/parser.rb', line 169

def lines(ending)
  line(ending).as(:line).repeat
end