Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/blake/main.rb
Instance Method Summary collapse
Instance Method Details
#ror(shift, word_size = size) ⇒ Object
2 3 4 5 |
# File 'lib/blake/main.rb', line 2 def ror(shift, word_size = size) word_size *= 8 self >> shift | (self << (word_size - shift) & (2**word_size - 1)) end |