Class: Html2Bbcode::Bbcode::Element
- Inherits:
-
Object
- Object
- Html2Bbcode::Bbcode::Element
- Defined in:
- lib/bbcode/element.rb
Instance Attribute Summary collapse
-
#html_element ⇒ Object
readonly
Returns the value of attribute html_element.
Instance Method Summary collapse
- #closing_tags ⇒ Object
-
#initialize(html_element) ⇒ Element
constructor
A new instance of Element.
- #name ⇒ Object
- #names ⇒ Object
- #opening_tags ⇒ Object
Constructor Details
#initialize(html_element) ⇒ Element
Returns a new instance of Element.
4 5 6 |
# File 'lib/bbcode/element.rb', line 4 def initialize html_element @html_element = html_element end |
Instance Attribute Details
#html_element ⇒ Object (readonly)
Returns the value of attribute html_element.
8 9 10 |
# File 'lib/bbcode/element.rb', line 8 def html_element @html_element end |
Instance Method Details
#closing_tags ⇒ Object
14 15 16 |
# File 'lib/bbcode/element.rb', line 14 def . end |
#name ⇒ Object
22 23 24 |
# File 'lib/bbcode/element.rb', line 22 def name rules.bbcode_name end |
#names ⇒ Object
18 19 20 |
# File 'lib/bbcode/element.rb', line 18 def names Array name end |
#opening_tags ⇒ Object
10 11 12 |
# File 'lib/bbcode/element.rb', line 10 def . end |