Class: Subtract
- Inherits:
-
InstanceCall
- Object
- Array
- InstanceCall
- Subtract
- Defined in:
- lib/core/syntax/Subtract.rb
Instance Method Summary collapse
- #closure ⇒ Object
- #copy ⇒ Object
-
#initialize ⇒ Subtract
constructor
A new instance of Subtract.
- #write ⇒ Object
Methods inherited from InstanceCall
#describe, #destructive?, #requirements, #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 ⇒ Subtract
Returns a new instance of Subtract.
3 4 5 |
# File 'lib/core/syntax/Subtract.rb', line 3 def initialize end |
Instance Method Details
#closure ⇒ Object
15 16 17 |
# File 'lib/core/syntax/Subtract.rb', line 15 def closure return [' ',''] end |
#copy ⇒ Object
7 8 9 |
# File 'lib/core/syntax/Subtract.rb', line 7 def copy return self.class.new end |
#write ⇒ Object
11 12 13 |
# File 'lib/core/syntax/Subtract.rb', line 11 def write return ' -' end |