Class: Ruby::Tags::Text
- Inherits:
-
Object
- Object
- Ruby::Tags::Text
- Defined in:
- lib/ruby/tags/tags.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(text) ⇒ Text
constructor
A new instance of Text.
- #render ⇒ Object
Constructor Details
#initialize(text) ⇒ Text
Returns a new instance of Text.
26 27 28 |
# File 'lib/ruby/tags/tags.rb', line 26 def initialize(text) @text = text end |
Instance Method Details
#==(other) ⇒ Object
34 35 36 |
# File 'lib/ruby/tags/tags.rb', line 34 def ==(other) @text == other.instance_variable_get(:@text) end |
#render ⇒ Object
30 31 32 |
# File 'lib/ruby/tags/tags.rb', line 30 def render @text end |