Class: Turnip::Node::Base

Inherits:
Object
  • Object
show all
Includes:
HasLocation
Defined in:
lib/turnip/node/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HasLocation

#line, #location

Constructor Details

#initialize(raw) ⇒ Base

Returns a new instance of Base.



10
11
12
# File 'lib/turnip/node/base.rb', line 10

def initialize(raw)
  @raw = raw
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



8
9
10
# File 'lib/turnip/node/base.rb', line 8

def raw
  @raw
end