Class: Chop

Inherits:
InstanceCall show all
Defined in:
lib/core/instance_call/Chop.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

#initializeChop

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

#copyObject



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

#writeObject



7
8
9
# File 'lib/core/instance_call/Chop.rb', line 7

def write
  return '.chop'
end