class Dentaku::AST::StringFunctions::Contains
Public Class Methods
max_param_count()
click to toggle source
# File lib/dentaku/ast/functions/string_functions.rb, line 184 def self.max_param_count 2 end
min_param_count()
click to toggle source
# File lib/dentaku/ast/functions/string_functions.rb, line 180 def self.min_param_count 2 end
new(*args)
click to toggle source
Calls superclass method
Dentaku::AST::Function::new
# File lib/dentaku/ast/functions/string_functions.rb, line 188 def initialize(*args) super @needle, @haystack = *args end
Public Instance Methods
type()
click to toggle source
# File lib/dentaku/ast/functions/string_functions.rb, line 197 def type :logical end
value(context = {})
click to toggle source
# File lib/dentaku/ast/functions/string_functions.rb, line 193 def value(context = {}) @haystack.value(context).to_s.include? @needle.value(context).to_s end