class Dentaku::AST::StringFunctions::Len
Public Class Methods
max_param_count()
click to toggle source
# File lib/dentaku/ast/functions/string_functions.rb, line 92 def self.max_param_count 1 end
min_param_count()
click to toggle source
# File lib/dentaku/ast/functions/string_functions.rb, line 88 def self.min_param_count 1 end
new(*args)
click to toggle source
Calls superclass method
Dentaku::AST::Function::new
# File lib/dentaku/ast/functions/string_functions.rb, line 96 def initialize(*args) super @string = @args[0] end
Public Instance Methods
type()
click to toggle source
# File lib/dentaku/ast/functions/string_functions.rb, line 106 def type :numeric end
value(context = {})
click to toggle source
# File lib/dentaku/ast/functions/string_functions.rb, line 101 def value(context = {}) string = @string.value(context).to_s string.length end