lib/bbcoder/configuration.rb in bbcoder-1.0.0 vs lib/bbcoder/configuration.rb in bbcoder-1.0.1
- old
+ new
@@ -4,9 +4,17 @@
def [](value)
@@tags[value]
end
+ def clear
+ @@tags = {}
+ end
+
+ def remove name
+ @@tags.delete(name.to_sym)
+ end
+
def tag(name, options = {}, &block)
unless block.nil?
block.binding.eval <<-EOS
def meta; @meta; end
def content; @content; end