Class: Dentaku::AST::StringFunctions::Base
- Defined in:
- lib/dentaku/ast/functions/string_functions.rb
Constant Summary
Constants inherited from Function
Constants inherited from Node
Node::STATIC_CONTEXT, Node::STATIC_MODE_KEY
Instance Attribute Summary
Attributes inherited from Function
Instance Method Summary collapse
Methods inherited from Function
#accept, #dependencies, get, #initialize, register, register_class, registry, volatile?
Methods inherited from Node
arity, #dependencies, #name, precedence, #pure?, resolve_class
Constructor Details
This class inherits a constructor from Dentaku::AST::Function
Instance Method Details
#negative_argument_failure(fun, arg = 'length') ⇒ Object
11 12 13 14 15 16 |
# 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 ⇒ Object
7 8 9 |
# File 'lib/dentaku/ast/functions/string_functions.rb', line 7 def type :string end |