class SB

Constants

VERSION

Public Instance Methods

<<(str) click to toggle source

Public: Append a string, making sure that it’s escaped if it’s not a “safe” string (i.e. not an instance of SB).

str - A String.

Returns self.

Calls superclass method
# File lib/sb.rb, line 11
def <<(str)
  super(SB === str ? str : SB(Hache.h(str)))
end
to_s() click to toggle source

Public: Make sure converting this into a string doesn’t mark it as unsafe.

# File lib/sb.rb, line 16
def to_s
  self
end