class Dentaku::AST::StringFunctions::Base

Public Instance Methods

negative_argument_failure(fun, arg = 'length') click to toggle source
# File lib/dentaku/ast/functions/string_functions.rb, line 11
def negative_argument_failure(fun, arg = 'length')
  raise Dentaku::ArgumentError.for(
    :invalid_value,
    function_name: "#{fun}()"
  ), "#{fun}() requires #{arg} to be positive"
end
type() click to toggle source
# File lib/dentaku/ast/functions/string_functions.rb, line 7
def type
  :string
end