Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/bbgun/string.rb
Instance Method Summary collapse
-
#tbbc(conf = nil) ⇒ Object
Allows for “[b]Bold”.tbbc .
Instance Method Details
#tbbc(conf = nil) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/bbgun/string.rb', line 9 def tbbc(conf = nil) if !(BBGun.configured?) || conf != nil BBGun.configure do |c| if conf conf.each do |k, v| c.set_from_sym(k,v) end end end end BBGun.parse(self) end |