class Escape::StringWrapper
Public Class Methods
new(str)
click to toggle source
# File escape.rb, line 42 def new(str) new_no_dup(str.dup) end
Also aliased as: new_no_dup
new(str)
click to toggle source
# File escape.rb, line 47 def initialize(str) @str = str end
Public Instance Methods
==(other)
click to toggle source
# File escape.rb, line 61 def ==(other) other.class == self.class && @str == other.instance_variable_get(:@str) end
Also aliased as: eql?
escaped_string()
click to toggle source
# File escape.rb, line 51 def escaped_string @str.dup end
Also aliased as: to_s
hash()
click to toggle source
# File escape.rb, line 66 def hash @str.hash end
inspect()
click to toggle source
# File escape.rb, line 57 def inspect "\#<#{self.class}: #{@str}>" end