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
9 10 11 12 13 |
# File 'lib/crypt/bytes-compat.rb', line 9 def bytes bytes = [] self.each_byte {|b| bytes << b} bytes end |
#getbyte(index) ⇒ Object
3 4 5 |
# File 'lib/crypt/bytes-compat.rb', line 3 def getbyte(index) self[index] end |