Class: Linkage::Functions::Trim
Constant Summary
Constants inherited
from Data
Data::TYPE_CONVERSION_TREE
Instance Attribute Summary
#args
Attributes inherited from Data
#dataset, #name
Class Method Summary
collapse
Instance Method Summary
collapse
#==, [], #dataset, #dataset=, #initialize, #name, register, #static?, #to_expr
Methods inherited from Data
#database_type, #initialize, #merge, #static?, #to_expr
Class Method Details
.function_name ⇒ Object
4
5
6
|
# File 'lib/linkage/functions/trim.rb', line 4
def self.function_name
"trim"
end
|
.parameters ⇒ Object
8
9
10
|
# File 'lib/linkage/functions/trim.rb', line 8
def self.parameters
[[String]]
end
|
Instance Method Details
#collation ⇒ Object
20
21
22
23
24
25
26
|
# File 'lib/linkage/functions/trim.rb', line 20
def collation
if @args[0].kind_of?(Data)
@args[0].collation
else
super
end
end
|
#ruby_type ⇒ Object
12
13
14
15
16
17
18
|
# File 'lib/linkage/functions/trim.rb', line 12
def ruby_type
if @args[0].kind_of?(Data)
@args[0].ruby_type
else
{:type => String}
end
end
|