Class: Ragel::Bitmap::Array64Offset
- Inherits:
-
Object
- Object
- Ragel::Bitmap::Array64Offset
- Defined in:
- lib/ragel/bitmap.rb
Instance Method Summary collapse
- #[](idx) ⇒ Object
-
#initialize(string) ⇒ Array64Offset
constructor
A new instance of Array64Offset.
Constructor Details
#initialize(string) ⇒ Array64Offset
Returns a new instance of Array64Offset.
78 79 80 |
# File 'lib/ragel/bitmap.rb', line 78 def initialize(string) @string = string end |
Instance Method Details
#[](idx) ⇒ Object
82 83 84 |
# File 'lib/ragel/bitmap.rb', line 82 def [](idx) @string.unpack1('Q', offset: idx * 8) end |