A buffer which will retain binary encoding.
Methods
- #
-
- C
-
- N
-
Constants
BINARY |
= |
Encoding::BINARY |
|
|
Class Public methods
Source:
show
| on GitHub
def initialize
super
force_encoding(BINARY)
end
Instance Public methods
<<(string)
Link
Source:
show
| on GitHub
def << string
if string.encoding == BINARY
super(string)
else
super(string.b)
end
return self
end