Class: Twostroke::AST::Base
- Inherits:
-
Object
- Object
- Twostroke::AST::Base
- Defined in:
- lib/twostroke/ast.rb
Direct Known Subclasses
Array, Assignment, Body, Break, Call, Case, Continue, Declaration, Delete, DoWhile, False, ForIn, ForLoop, Function, If, Index, MemberAccess, MultiExpression, New, Null, Number, ObjectLiteral, Regexp, Return, String, Switch, Ternary, This, Throw, True, Try, UnsortedBinop, Variable, While, With
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(hash = {}) ⇒ Base
Returns a new instance of Base.
4 5 6 7 8 |
# File 'lib/twostroke/ast.rb', line 4 def initialize(hash = {}) hash.each do |k,v| send "#{k}=", v end end |