class LtdTemplate::Value::Array_Splat
Attributes
named[R]
positional[R]
Public Class Methods
new(positional, named = nil)
click to toggle source
@param positional [Array] Positional parameters @param named [Array] Flat array of key, value pairs
# File lib/ltdtemplate/value/array_splat.rb, line 15 def initialize (positional, named = nil) @positional, @named = positional, named end
Public Instance Methods
evaluate(opts = {})
click to toggle source
Evaluate support array splat methods. Very little is supported, as these are only intended to be used in parameter and subscript list expansions.
# File lib/ltdtemplate/value/array_splat.rb, line 22 def evaluate (opts = {}) case opts[:method] when 'type' then 'array_splat' else nil end end
tpl_text()
click to toggle source
Unlike arrays, these generate no template text.
# File lib/ltdtemplate/value/array_splat.rb, line 30 def tpl_text; ''; end