Class: Buffer
- Inherits:
-
Object
- Object
- Buffer
- Defined in:
- lib/bytes.rb
Class Method Summary collapse
Class Method Details
.new(*args) ⇒ Object
56 57 58 59 60 61 62 63 |
# File 'lib/bytes.rb', line 56 def self.new( *args ) if args.size == 0 ## note: use "" to always use default encoding (and NOT binary) String.new( "" ) else String.new( *args ) end end |