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

Instance Method Summary collapse

Methods inherited from Base

#negative_argument_failure, #type

Methods inherited from Function

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

Methods inherited from Node

arity, #dependencies, peek, precedence

Constructor Details

#initialize(*args) ⇒ Concat

Returns a new instance of Concat.



114
115
116
# File 'lib/dentaku/ast/functions/string_functions.rb', line 114

def initialize(*args)
  super
end

Instance Method Details

#value(context = {}) ⇒ Object



118
119
120
# File 'lib/dentaku/ast/functions/string_functions.rb', line 118

def value(context = {})
  @args.map { |arg| arg.value(context).to_s }.join
end