Method: BERT::Decode.decode
- Defined in:
- lib/bert/decode.rb
.decode(string) ⇒ Object
10 11 12 13 14 |
# File 'lib/bert/decode.rb', line 10 def self.decode(string) io = StringIO.new(string) io.set_encoding('binary') if io.respond_to?(:set_encoding) new(io).read_any end |