Sha256: 630f7b69cf791f93e2799fbf2532906ed5f65360700936871cfa5f9b22a7cb9c
Contents?: true
Size: 397 Bytes
Versions: 6
Compression:
Stored size: 397 Bytes
Contents
class BBCoder class Configuration @@tags = {} def [](value) @@tags[value] end def tag(name, options = {}, &block) unless block.nil? block.binding.eval <<-EOS def meta; @meta; end def content; @content; end EOS end @@tags[name.to_sym] = BBCoder::Tag.new(name.to_sym, options.merge(:block => block)) end end end
Version data entries
6 entries across 6 versions & 1 rubygems