Class: Chop
- Inherits:
-
InstanceCall
- Object
- Array
- InstanceCall
- Chop
- Defined in:
- lib/core/instance_call/Chop.rb
Instance Method Summary collapse
- #copy ⇒ Object
-
#initialize ⇒ Chop
constructor
A new instance of Chop.
- #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 ⇒ Chop
Returns a new instance of Chop.
3 4 5 |
# File 'lib/core/instance_call/Chop.rb', line 3 def initialize super end |
Instance Method Details
#copy ⇒ Object
11 12 13 |
# File 'lib/core/instance_call/Chop.rb', line 11 def copy return Chop.new end |
#use(val) ⇒ Object
15 16 17 |
# File 'lib/core/instance_call/Chop.rb', line 15 def use(val) return val.chop end |
#write ⇒ Object
7 8 9 |
# File 'lib/core/instance_call/Chop.rb', line 7 def write return '.chop' end |