Class: Dentaku::AST::StringFunctions::Concat

Inherits:
Base show all
Defined in:
lib/dentaku/ast/functions/string_functions.rb

Constant Summary

Constants inherited from Function

Function::DIG

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#negative_argument_failure, #type

Methods inherited from Function

#deferred_args, #dependencies, get, numeric, register, register_class, registry

Methods inherited from Node

arity, #dependencies, peek, precedence, #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_countObject



166
167
168
# File 'lib/dentaku/ast/functions/string_functions.rb', line 166

def self.max_param_count
  Float::INFINITY
end

.min_param_countObject



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