Class: String
- Inherits:
-
Object
- Object
- String
- Includes:
- Crypt::Noise, Crypt::StringXor
- Defined in:
- lib/crypt/noise.rb,
lib/crypt/stringxor.rb,
lib/crypt/bytes-compat.rb
Instance Method Summary collapse
Methods included from Crypt::StringXor
Methods included from Crypt::Noise
Instance Method Details
#bytes ⇒ Object
10 11 12 13 14 |
# File 'lib/crypt/bytes-compat.rb', line 10 def bytes bytes = [] self.each_byte {|b| bytes << b} bytes end |
#getbyte(index) ⇒ Object
4 5 6 |
# File 'lib/crypt/bytes-compat.rb', line 4 def getbyte(index) self[index] end |