lib/liquidscript/icr/set.rb in liquidscript-0.4.1 vs lib/liquidscript/icr/set.rb in liquidscript-0.5.0

- old
+ new

@@ -41,9 +41,17 @@ # @param arguments the arguments for the code. def add(action, *arguments) @code << Code.new(action, arguments) end + def <<(*v) + v.select { |p| p }.each do |part| + @code << part + end + end + + alias_method :push, :<< + # A list of all the local variables in the # current scope. Local variables are defined # as variables that were a) not passed in by # function execution as arguments and b) are # set within the current context.