Class: Ragel::Bitmap::Array64Offset

Inherits:
Object
  • Object
show all
Defined in:
lib/ragel/bitmap.rb

Instance Method Summary collapse

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