class String

Public Instance Methods

byteslice(*args) click to toggle source
# File lib/string.rb, line 4
def byteslice(*args)
  self.dup.force_encoding('ASCII-8BIT').slice!(*args)
end
force_encoding(encoding) click to toggle source
# File lib/string.rb, line 10
def force_encoding(encoding)
  self # noop
end