Class: Ragel::Bitmap::Array32Offset

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

Instance Method Summary collapse

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