Class: Copy
- Inherits:
-
InstanceCall
- Object
- Array
- InstanceCall
- Copy
- Defined in:
- lib/core/instance_call/Copy.rb
Instance Method Summary collapse
- #copy ⇒ Object
-
#initialize ⇒ Copy
constructor
A new instance of Copy.
- #use(val) ⇒ Object
- #write ⇒ Object
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
#initialize ⇒ Copy
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
#copy ⇒ Object
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 |
#write ⇒ Object
10 11 12 |
# File 'lib/core/instance_call/Copy.rb', line 10 def write return '.copy' end |