Class: Ragel::Bitmap::Array32Offset
- Inherits:
-
Object
- Object
- Ragel::Bitmap::Array32Offset
- Defined in:
- lib/ragel/bitmap.rb
Instance Method Summary collapse
- #[](idx) ⇒ Object
-
#initialize(string) ⇒ Array32Offset
constructor
A new instance of Array32Offset.
Constructor Details
#initialize(string) ⇒ Array32Offset
Returns a new instance of Array32Offset.
68 69 70 |
# File 'lib/ragel/bitmap.rb', line 68 def initialize(string) @string = string end |
Instance Method Details
#[](idx) ⇒ Object
72 73 74 |
# File 'lib/ragel/bitmap.rb', line 72 def [](idx) @string.unpack1('L', offset: idx * 4) end |