Method: BERT.ebin

Defined in:
lib/bert/bert.rb

.ebin(str) ⇒ Object



10
11
12
13
14
# File 'lib/bert/bert.rb', line 10

def self.ebin(str)
  bytes = []
  str.each_byte { |b| bytes << b.to_s }
  "<<" + bytes.join(',') + ">>"
end