Class: Ruby::Tags::Void
- Inherits:
-
Object
- Object
- Ruby::Tags::Void
- Defined in:
- lib/ruby/tags/tags.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name, attribute = Attribute.new) ⇒ Void
constructor
A new instance of Void.
- #render ⇒ Object
Constructor Details
Instance Method Details
#==(other) ⇒ Object
73 74 75 76 |
# File 'lib/ruby/tags/tags.rb', line 73 def ==(other) @name == other.instance_variable_get(:@name) && @attribute == other.instance_variable_get(:@attribute) end |
#render ⇒ Object
69 70 71 |
# File 'lib/ruby/tags/tags.rb', line 69 def render "<#{@name}#{@attribute.render}/>" end |