Class: Unitwise::Expression::Parser
- Inherits:
-
Parslet::Parser
- Object
- Parslet::Parser
- Unitwise::Expression::Parser
- Defined in:
- lib/unitwise/expression/parser.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key = :primary_code) ⇒ Parser
constructor
A new instance of Parser.
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
4 5 6 |
# File 'lib/unitwise/expression/parser.rb', line 4 def key @key end |