Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/bb-ruby.rb

Instance Method Summary collapse

Instance Method Details

#bbcode_to_html(tags_alternative_definition = {}, escape_html = true, method = :disable, *tags) ⇒ Object



239
240
241
# File 'lib/bb-ruby.rb', line 239

def bbcode_to_html(tags_alternative_definition = {}, escape_html=true, method=:disable, *tags)
  BBRuby.to_html(self, tags_alternative_definition, escape_html, method, tags)
end

#bbcode_to_html!(tags_alternative_definition = {}, escape_html = true, method = :disable, *tags) ⇒ Object



242
243
244
# File 'lib/bb-ruby.rb', line 242

def bbcode_to_html!(tags_alternative_definition = {}, escape_html=true, method=:disable, *tags)
  self.replace(BBRuby.to_html(self, tags_alternative_definition, escape_html, method, tags))
end