Class: BaseElements::Base
- Inherits:
-
Element
- Object
- Element
- BaseElements::Base
- Defined in:
- lib/reparcs/elements/base_elements.rb
Overview
A Base element ‘<base />’
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Base
constructor
Creates a new Base element, takes an optional hash of attributes as parameter.
Constructor Details
#initialize(attrs = {}) ⇒ Base
Creates a new Base element, takes an optional hash of attributes as parameter.
10 11 12 13 14 |
# File 'lib/reparcs/elements/base_elements.rb', line 10 def initialize(attrs={}) super("base", ["id", "href"], attrs) @start_element = "<base" @end_element = " />" end |