Class: StringLength
Instance Method Summary
collapse
#closure, #describe, #destructive?, #response, #to_declaration, #valid_syntax?
Methods inherited from Array
#cauldron_method_calls, #contains?, #select_all, #to_declaration, #to_intrinsic, #to_literal, #to_var
Constructor Details
Returns a new instance of StringLength.
Instance Method Details
16
17
18
|
# File 'lib/core/instance_call/StringLength.rb', line 16
def copy
return StringLength.new
end
|
#requirements ⇒ Object
20
21
22
|
# File 'lib/core/instance_call/StringLength.rb', line 20
def requirements
@use_requirements.each {|req| yield req}
end
|
#to_literal_string ⇒ Object
28
29
30
|
# File 'lib/core/instance_call/StringLength.rb', line 28
def to_literal_string
return write
end
|
24
25
26
|
# File 'lib/core/instance_call/StringLength.rb', line 24
def use(val)
return val.length
end
|
12
13
14
|
# File 'lib/core/instance_call/StringLength.rb', line 12
def write
return '.length'
end
|