class Bruhl::RawString

Attributes

str[R]

Public Class Methods

new(str) click to toggle source
# File lib/bruhl.rb, line 114
def initialize(str)
  @str = str
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/bruhl.rb, line 118
def <=>(other)
  other.respond_to?(:to_str) && @str <=> other.to_str
end
eql?(other) click to toggle source
# File lib/bruhl.rb, line 122
def eql?(other)
  self == other
end
hash() click to toggle source
# File lib/bruhl.rb, line 126
def hash
  @str.hash
end
inspect() click to toggle source
# File lib/bruhl.rb, line 130
def inspect
  to_s
end
to_s() click to toggle source
# File lib/bruhl.rb, line 134
def to_s
  @str
end
to_str() click to toggle source
# File lib/bruhl.rb, line 138
def to_str
  @str
end