Class: Html2Bbcode
- Inherits:
-
Object
- Object
- Html2Bbcode
- Defined in:
- lib/html/color.rb,
lib/html2bbcode.rb,
lib/bbcode/rules.rb,
lib/html/element.rb,
lib/bbcode/element.rb,
lib/html/attributes.rb,
lib/bbcode/closing_tags.rb,
lib/bbcode/opening_tags.rb
Defined Under Namespace
Instance Method Summary collapse
- #convert ⇒ Object
-
#initialize(input_html, options = {}) ⇒ Html2Bbcode
constructor
A new instance of Html2Bbcode.
Constructor Details
#initialize(input_html, options = {}) ⇒ Html2Bbcode
Returns a new instance of Html2Bbcode.
15 16 17 18 |
# File 'lib/html2bbcode.rb', line 15 def initialize input_html, = {} @parsed_html = Nokogiri::HTML::Document.parse input_html @options = end |
Instance Method Details
#convert ⇒ Object
20 21 22 |
# File 'lib/html2bbcode.rb', line 20 def convert html_element.process end |