Class: Copy

Inherits:
InstanceCall show all
Defined in:
lib/core/instance_call/Copy.rb

Instance Method Summary collapse

Methods inherited from InstanceCall

#closure, #describe, #destructive?, #requirements, #response, #to_declaration, #to_literal_string, #valid_syntax?

Methods inherited from Array

#cauldron_method_calls, #contains?, #select_all, #to_declaration, #to_intrinsic, #to_literal, #to_var

Constructor Details

#initializeCopy

Returns a new instance of Copy.



3
4
5
6
7
8
# File 'lib/core/instance_call/Copy.rb', line 3

def initialize
  super
  
  @use_requirements = []
  
end

Instance Method Details

#copyObject



14
15
16
# File 'lib/core/instance_call/Copy.rb', line 14

def copy
  return Copy.new
end

#use(val) ⇒ Object



18
19
20
# File 'lib/core/instance_call/Copy.rb', line 18

def use(val)
  return val.copy
end

#writeObject



10
11
12
# File 'lib/core/instance_call/Copy.rb', line 10

def write
  return '.copy'
end