lib/jcompiler/provider.rb in jcompiler-0.1.126 vs lib/jcompiler/provider.rb in jcompiler-0.1.127

- old
+ new

@@ -16,11 +16,11 @@ end def array!(arg_src, &block) item_name = block.parameters[0][1].to_s src = block.call(nil) - %{"[\#{(#{arg_src}).map { |#{item_name}| #{src} }.join(',')}]"} + %{"[\#{(#{arg_src}).map{|#{item_name}|#{src}}.join(',')}]"} end def number!(num) %{#{num}.to_json} end @@ -31,9 +31,13 @@ def extract!(obj_name, *key_names) key_names.each do |key_name| send(key_name, "#{obj_name}.#{key_name}") end + end + + def partial!(obj_name) + end def method_missing(name, *args, &block) if block @context << %{"\\"#{name}\\":\#{#{block.call}}"}