Class: Twostroke::AST::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/twostroke/ast.rb

Instance Method Summary collapse

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