File: bytesize.rb

package info (click to toggle)
ruby-em-http-request 0.3.0-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 424 kB
  • sloc: ruby: 2,381; ansic: 999; makefile: 2
file content (6 lines) | stat: -rw-r--r-- 120 bytes parent folder | download
1
2
3
4
5
6
# bytesize was introduced in 1.8.7+
if RUBY_VERSION <= "1.8.6"
  class String
    def bytesize; self.size; end
  end
end