lib/rabbit/parser.rb in rabbit-3.0.1 vs lib/rabbit/parser.rb in rabbit-3.0.2
- old
+ new
@@ -23,20 +23,20 @@
module Rabbit
module Parser
include GetText
module_function
- def parse(canvas, source)
+ def parse(canvas, source, **options)
parser = Base.find_loader(source)
if parser.nil?
format = _("unsupported format. (supported: %s)")
format_names = Base.loaders.collect do |loader|
loader.format_name
end
message = format % "[#{format_names.join(', ')}]"
raise UnsupportedFormatError.new(message)
end
- parser.new(canvas, source).parse
+ parser.new(canvas, source, **options).parse
end
def normalize_property_name(name)
name.gsub(/_/, "-").strip
end