lib/jcompiler/provider.rb in jcompiler-0.1.116 vs lib/jcompiler/provider.rb in jcompiler-0.1.119
- old
+ new
@@ -23,9 +23,15 @@
def number!(num)
%{"#{num}"}
end
+ def extract!(obj_name, *key_names)
+ key_names.each do |key_name|
+ send(key_name, "#{obj_name}.#{key_name}")
+ end
+ end
+
def method_missing(name, *args, &block)
src = if block
block.call
else
args[0]