Class: Ruby::Tags::Text

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby/tags/tags.rb

Instance Method Summary collapse

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

#renderObject



30
31
32
# File 'lib/ruby/tags/tags.rb', line 30

def render
  @text
end