class Polites::Text
A piece of simple text to be output directly. A stand-in for a simple string.
Attributes
text[R]
Public Class Methods
new(text)
click to toggle source
@param [String] text
# File lib/polites/text.rb, line 10 def initialize(text) @text = text end
Public Instance Methods
eql?(other)
click to toggle source
# File lib/polites/text.rb, line 14 def eql?(other) other.is_a?(self.class) && text == other.text end
Also aliased as: ==