Class: Packcr::Parser::ThunkNode

Inherits:
Thunk
  • Object
show all
Defined in:
lib/packcr/parser.rb

Instance Attribute Summary collapse

Attributes inherited from Thunk

#type

Instance Method Summary collapse

Constructor Details

#initialize(thunks, values, index) ⇒ ThunkNode

Returns a new instance of ThunkNode.



4222
4223
4224
4225
4226
4227
4228
# File 'lib/packcr/parser.rb', line 4222

def initialize(thunks, values, index)
  @type = :node
  @thunks = thunks
  @values = values
  @index = index
  values[index] ||= Value.new if values
end

Instance Attribute Details

#indexObject

Returns the value of attribute index.



4220
4221
4222
# File 'lib/packcr/parser.rb', line 4220

def index
  @index
end

#thunksObject

Returns the value of attribute thunks.



4220
4221
4222
# File 'lib/packcr/parser.rb', line 4220

def thunks
  @thunks
end

#valuesObject

Returns the value of attribute values.



4220
4221
4222
# File 'lib/packcr/parser.rb', line 4220

def values
  @values
end