Class: String

Inherits:
Object show all
Defined in:
lib/oauth/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#bytesObject



25
26
27
28
# File 'lib/oauth/core_ext.rb', line 25

def bytes
  require 'enumerator'
  Enumerable::Enumerator.new(self, :each_byte)
end

#bytesizeObject



19
20
21
# File 'lib/oauth/core_ext.rb', line 19

def bytesize
  self.size
end