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