lib/bbcoder/configuration.rb in bbcoder-0.1.5 vs lib/bbcoder/configuration.rb in bbcoder-0.1.6
- old
+ new
@@ -9,9 +9,10 @@
def tag(name, options = {}, &block)
unless block.nil?
block.binding.eval <<-EOS
def meta; @meta; end
def content; @content; end
+ def singular?; @singularity; end
EOS
end
@@tags[name.to_sym] = BBCoder::Tag.new(name.to_sym, options.merge(:block => block))
end
end