Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/puma/compat.rb
Overview
Provides code to work properly on 1.8 and 1.9
Instance Method Summary collapse
Instance Method Details
#byteslice(*arg) ⇒ Object
9 10 11 12 |
# File 'lib/puma/compat.rb', line 9 def byteslice(*arg) enc = self.encoding self.dup.force_encoding(Encoding::ASCII_8BIT).slice(*arg).force_encoding(enc) end |