Module: Bbcode::Helpers
- Defined in:
- lib/bbcode/helpers.rb
Instance Method Summary collapse
Instance Method Details
#as(parser_name) ⇒ Object
7 8 9 |
# File 'lib/bbcode/helpers.rb', line 7 def as(parser_name) parse_with Bbcode.parser parser_name end |
#as_bbcode ⇒ Object
11 12 13 |
# File 'lib/bbcode/helpers.rb', line 11 def as_bbcode as :bbcode end |
#parse_with(parser) ⇒ Object
3 4 5 |
# File 'lib/bbcode/helpers.rb', line 3 def parse_with(parser) Base.new parser, self.to_s end |