class Gammo::XPath::AST::Function::Contains
@!visibility private
Public Instance Methods
evaluate(context)
click to toggle source
# File lib/gammo/xpath/ast/function.rb, line 126 def evaluate(context) substr = arguments[1].evaluate(context).to_s return bool(true) if substr.empty? bool arguments[0].evaluate(context).to_s.include?(substr) end