Class: Unitwise::Expression::Parser

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key = :primary_code) ⇒ Parser

Returns a new instance of Parser.



5
6
7
# File 'lib/unitwise/expression/parser.rb', line 5

def initialize(key=:primary_code)
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



4
5
6
# File 'lib/unitwise/expression/parser.rb', line 4

def key
  @key
end