Class: REHTML::Tag
Direct Known Subclasses
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(name, attributes, empty) ⇒ Tag
constructor
A new instance of Tag.
Constructor Details
#initialize(name, attributes, empty) ⇒ Tag
Returns a new instance of Tag.
14 15 16 17 18 |
# File 'lib/rehtml/elements.rb', line 14 def initialize(name,attributes,empty) @name = name @attributes = attributes @empty = empty end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
13 14 15 |
# File 'lib/rehtml/elements.rb', line 13 def attributes @attributes end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
13 14 15 |
# File 'lib/rehtml/elements.rb', line 13 def name @name end |
Instance Method Details
#empty? ⇒ Boolean
19 20 21 |
# File 'lib/rehtml/elements.rb', line 19 def empty? @empty end |