Class: ClassCall
- Inherits:
-
InstanceCall
- Object
- Array
- InstanceCall
- ClassCall
- Defined in:
- lib/core/method_call/ClassCall.rb
Overview
TODO Change this to InstanceClassCall = remember it needs to be changed to InstanceClassCallClass
TODO Move this to instance_call
This represents the .class element of statements like e.g. var_a.class
Instance Method Summary collapse
- #copy ⇒ Object
- #declaration_statement ⇒ Object
-
#initialize ⇒ ClassCall
constructor
A new instance of ClassCall.
-
#requirements ⇒ Object
The class call has no requirements since every object has this methods.
- #write ⇒ Object
Methods inherited from InstanceCall
#closure, #describe, #destructive?, #response, #to_declaration, #to_literal_string, #use, #valid_syntax?
Methods inherited from Array
#cauldron_method_calls, #contains?, #select_all, #to_declaration, #to_intrinsic, #to_literal, #to_var
Constructor Details
#initialize ⇒ ClassCall
Returns a new instance of ClassCall.
10 11 12 |
# File 'lib/core/method_call/ClassCall.rb', line 10 def initialize super end |
Instance Method Details
#copy ⇒ Object
18 19 20 |
# File 'lib/core/method_call/ClassCall.rb', line 18 def copy return ClassCall.new end |
#declaration_statement ⇒ Object
29 30 31 |
# File 'lib/core/method_call/ClassCall.rb', line 29 def declaration_statement return ClassMethodCallContainer.new(ClassCallClass.new,New.new) end |
#requirements ⇒ Object
The class call has no requirements since every object has this methods.
25 26 27 |
# File 'lib/core/method_call/ClassCall.rb', line 25 def requirements return [] end |
#write ⇒ Object
14 15 16 |
# File 'lib/core/method_call/ClassCall.rb', line 14 def write return '.class' end |