Class: InstanceMethodCallStructure

Inherits:
StatementStructure show all
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

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.

Parameters:

  • instance_class

    The class of the instance that has a method call

  • method_call

    A method call instance that can be called from instances of the supplied instance_class.



17
18
19
# File 'lib/core/structure/InstanceMethodCallStructure.rb', line 17

def initialize(instance_class,method_call)

end