Class: Dentaku::AST::StringFunctions::Concat
- Defined in:
- lib/dentaku/ast/functions/string_functions.rb
Constant Summary
Constants inherited from Function
Instance Attribute Summary
Attributes inherited from Function
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ Concat
constructor
A new instance of Concat.
- #value(context = {}) ⇒ Object
Methods inherited from Base
#negative_argument_failure, #type
Methods inherited from Function
#accept, #dependencies, get, numeric, register, register_class, registry
Methods inherited from Node
arity, #dependencies, #name, precedence, resolve_class, #type
Constructor Details
#initialize(*args) ⇒ Concat
Returns a new instance of Concat.
170 171 172 |
# File 'lib/dentaku/ast/functions/string_functions.rb', line 170 def initialize(*args) super end |
Class Method Details
.max_param_count ⇒ Object
166 167 168 |
# File 'lib/dentaku/ast/functions/string_functions.rb', line 166 def self.max_param_count Float::INFINITY end |
.min_param_count ⇒ Object
162 163 164 |
# File 'lib/dentaku/ast/functions/string_functions.rb', line 162 def self.min_param_count 1 end |
Instance Method Details
#value(context = {}) ⇒ Object
174 175 176 |
# File 'lib/dentaku/ast/functions/string_functions.rb', line 174 def value(context = {}) @args.map { |arg| arg.value(context).to_s }.join end |