Class: Termular::AST::Base
- Inherits:
-
Object
- Object
- Termular::AST::Base
- Defined in:
- lib/termular/parser.rb
Direct Known Subclasses
Binary, Call, CartesianCommand, ImplicitCartesianCommand, ImplicitPolarCommand, Negate, Number, OptionCommand, PolarCommand, QuitCommand, Variable
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(hash = {}) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/termular/parser.rb', line 6 def initialize(hash = {}) hash.each { |k,v| send "#{k}=", v } end |