Class: Packcr::Parser::ThunkNode
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#thunks ⇒ Object
Returns the value of attribute thunks.
-
#values ⇒ Object
Returns the value of attribute values.
Attributes inherited from Thunk
Instance Method Summary collapse
-
#initialize(thunks, values, index) ⇒ ThunkNode
constructor
A new instance of ThunkNode.
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
#index ⇒ Object
Returns the value of attribute index.
4220 4221 4222 |
# File 'lib/packcr/parser.rb', line 4220 def index @index end |
#thunks ⇒ Object
Returns the value of attribute thunks.
4220 4221 4222 |
# File 'lib/packcr/parser.rb', line 4220 def thunks @thunks end |
#values ⇒ Object
Returns the value of attribute values.
4220 4221 4222 |
# File 'lib/packcr/parser.rb', line 4220 def values @values end |