lib/cabbage_doc/parser.rb in cabbage_doc-0.0.7 vs lib/cabbage_doc/parser.rb in cabbage_doc-0.0.8
- old
+ new
@@ -5,16 +5,16 @@
base.extend(ClassMethods)
end
end
module ClassMethods
- def parse(text)
+ def parse(text, tag = TAG)
instance = new
- instance if instance.parse(text)
+ instance if instance.parse(text, tag)
end
end
- def parse(text)
+ def parse(text, tag = TAG)
raise NotImplementedError
end
def parse_option(text)
m = text.match(/^\((.*?)\)$/)