lib/code/object/list.rb in template-ruby-0.2.1 vs lib/code/object/list.rb in template-ruby-0.2.2

- old
+ new

@@ -57,11 +57,11 @@ if element.is_a?(::Code::Object::List) acc + element.flatten(arguments).raw else acc + [element] end - end + end, ) end def to_s "[#{raw.map(&:inspect).join(", ")}]" @@ -136,11 +136,11 @@ argument = arguments.first.value raw.reduce do |acc, element| argument.call( arguments: [ ::Code::Object::Argument.new(acc), - ::Code::Object::Argument.new(element) + ::Code::Object::Argument.new(element), ], context: context, io: io, ) end || ::Code::Object::Nothing.new @@ -167,11 +167,11 @@ argument.call( arguments: [::Code::Object::Argument.new(element)], context: context, io: io, ).truthy? - end + end, ) end def map(arguments, context:, io:) sig(arguments, ::Code::Object::Function) @@ -181,10 +181,10 @@ argument.call( arguments: [::Code::Object::Argument.new(element)], context: context, io: io, ) - end + end, ) end def append(arguments) sig(arguments, ::Code::Object)