Class: ClassCall

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

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

#initializeClassCall

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

#copyObject



18
19
20
# File 'lib/core/method_call/ClassCall.rb', line 18

def copy
  return ClassCall.new
end

#declaration_statementObject



29
30
31
# File 'lib/core/method_call/ClassCall.rb', line 29

def declaration_statement
  return ClassMethodCallContainer.new(ClassCallClass.new,New.new)
end

#requirementsObject

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

#writeObject



14
15
16
# File 'lib/core/method_call/ClassCall.rb', line 14

def write
  return '.class'
end