Class: Html2Bbcode::Bbcode::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/bbcode/element.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_elementObject (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_tagsObject



14
15
16
# File 'lib/bbcode/element.rb', line 14

def closing_tags
  get_closing_tags.tags
end

#nameObject



22
23
24
# File 'lib/bbcode/element.rb', line 22

def name
  rules.bbcode_name
end

#namesObject



18
19
20
# File 'lib/bbcode/element.rb', line 18

def names
  Array name
end

#opening_tagsObject



10
11
12
# File 'lib/bbcode/element.rb', line 10

def opening_tags
  get_opening_tags.tags
end