Class: BaseTag

Inherits:
REXML::Element
  • Object
show all
Defined in:
lib/ribit/xhtmltag.rb

Overview

Helper class for creating ‘base’ elements

Constant Summary collapse

NAME =
'base'
HREF =
'href'
TARGET =
'target'

Instance Method Summary collapse

Constructor Details

#initialize(href = nil, target = nil) ⇒ BaseTag

Returns a new instance of BaseTag.



61
62
63
64
65
# File 'lib/ribit/xhtmltag.rb', line 61

def initialize( href=nil, target=nil )
	super( NAME )
	attributes[HREF] = URI.escape( href )
	attributes[TARGET] = target
end