Class: Ragel::Bitmap::Array8

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

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ Array8

Returns a new instance of Array8.



17
18
19
# File 'lib/ragel/bitmap.rb', line 17

def initialize(string)
  @string = string
end

Instance Method Details

#[](idx) ⇒ Object



21
22
23
# File 'lib/ragel/bitmap.rb', line 21

def [](idx)
  @string.getbyte(idx)
end