Class: RawAttribute
- Inherits:
-
REXML::Attribute
- Object
- REXML::Attribute
- RawAttribute
- Defined in:
- lib/ribit/xhtmltag.rb
Instance Method Summary collapse
-
#initialize(key, value) ⇒ RawAttribute
constructor
A new instance of RawAttribute.
- #write(output, indent = -1 )) ⇒ Object
Constructor Details
#initialize(key, value) ⇒ RawAttribute
Returns a new instance of RawAttribute.
120 121 122 123 124 |
# File 'lib/ribit/xhtmltag.rb', line 120 def initialize( key, value ) super( key, value ) @key = key self.normalized = value end |
Instance Method Details
#write(output, indent = -1 )) ⇒ Object
127 128 129 130 131 132 |
# File 'lib/ribit/xhtmltag.rb', line 127 def write( output, indent=-1 ) str = super( output, indent ) str = @key + "='#{to_s()}'" #print( "attr="+str ) return str end |