Class: Parslet::Atoms::Named

Inherits:
Base
  • Object
show all
Defined in:
lib/nose/parser.rb

Overview

Modify named captures to allow arrays

Instance Method Summary collapse

Constructor Details

#initialize(parslet, name, array = false) ⇒ Named

Returns a new instance of Named.



26
27
28
29
30
31
# File 'lib/nose/parser.rb', line 26

def initialize(parslet, name, array = false)
  super()
  @parslet = parslet
  @name = name
  @array = array
end