Class: InstanceMethodCallStructure
- Inherits:
-
StatementStructure
- Object
- Array
- StatementStructure
- InstanceMethodCallStructure
- Defined in:
- lib/core/structure/InstanceMethodCallStructure.rb
Overview
This a generic structure that can be used to create any number of instance method calls. For example if it was meant to represent an array instance it might be able to produce the statement:
array.push(some_value)
TODO This might duplicate the functionality of the InstanceCallContainerStructure
although I can't remember what I created that for.
Constant Summary
Constants inherited from StatementStructure
StatementStructure::BLANK_STATEMENT, StatementStructure::DECLARATION_STATEMENT, StatementStructure::IF_STATEMENT, StatementStructure::MISC_STATEMENT, StatementStructure::MODIFYING_STATEMENT, StatementStructure::RETURN_STATEMENT, StatementStructure::USAGE_STATEMENT
Instance Method Summary collapse
-
#initialize(instance_class, method_call) ⇒ InstanceMethodCallStructure
constructor
A new instance of InstanceMethodCallStructure.
Methods inherited from Array
#cauldron_method_calls, #contains?, #copy, #select_all, #to_declaration, #to_intrinsic, #to_literal, #to_var, #write
Constructor Details
#initialize(instance_class, method_call) ⇒ InstanceMethodCallStructure
Returns a new instance of InstanceMethodCallStructure.
17 18 19 |
# File 'lib/core/structure/InstanceMethodCallStructure.rb', line 17 def initialize(instance_class,method_call) end |