Class: BaseElements::Base

Inherits:
Element
  • Object
show all
Defined in:
lib/reparcs/elements/base_elements.rb

Overview

A Base element ‘<base />’

Instance Method Summary collapse

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