class Syobocal::Comment::Element::Text

Attributes

str[R]

Public Class Methods

create(text) click to toggle source
# File lib/syobocal/comment/element/text.rb, line 15
def self.create(text)
  new(text)
end
new(str) click to toggle source
# File lib/syobocal/comment/element/text.rb, line 7
def initialize(str)
  @str = str
end

Public Instance Methods

==(other) click to toggle source
# File lib/syobocal/comment/element/text.rb, line 11
def ==(other)
  other.instance_of?(self.class) && other.str == str
end