Sha256: c447bc4177e31cb1488e1d942f0617bbdf740ba1bbb1a2d974923eaca8134399
Contents?: true
Size: 400 Bytes
Versions: 2
Compression:
Stored size: 400 Bytes
Contents
class BBCoder class Configuration attr_accessor :tags def initialize @tags = {} end def [](value) @tags[value] end def clear @tags = {} end def remove name @tags.delete(name.to_sym) end def tag(name, options = {}, &block) @tags[name.to_sym] = BBCoder::Tag.new(name.to_sym, options.merge(:block => block)) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bbcoder-1.1.1 | lib/bbcoder/configuration.rb |
bbcoder-1.1.0 | lib/bbcoder/configuration.rb |