Class: Twostroke::AST::Base

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash = {}) ⇒ Base

Returns a new instance of Base.



5
6
7
8
9
# File 'lib/twostroke/ast.rb', line 5

def initialize(hash = {})
  hash.each do |k,v|
    send "#{k}=", v
  end
end

Instance Attribute Details

#lineObject

Returns the value of attribute line.



4
5
6
# File 'lib/twostroke/ast.rb', line 4

def line
  @line
end