Class: Ragel::Bitmap::Array24
- Inherits:
-
Object
- Object
- Ragel::Bitmap::Array24
- Defined in:
- lib/ragel/bitmap.rb
Instance Method Summary collapse
- #[](idx) ⇒ Object
-
#initialize(highstring, middlestring, lowstring) ⇒ Array24
constructor
A new instance of Array24.
Constructor Details
#initialize(highstring, middlestring, lowstring) ⇒ Array24
Returns a new instance of Array24.
38 39 40 41 42 |
# File 'lib/ragel/bitmap.rb', line 38 def initialize(highstring, middlestring, lowstring) @highstring = highstring @middlestring = middlestring @lowstring = lowstring end |
Instance Method Details
#[](idx) ⇒ Object
44 45 46 47 48 |
# File 'lib/ragel/bitmap.rb', line 44 def [](idx) (@highstring.getbyte(idx) << 16) | (@middlestring.getbyte(idx) << 8) | @lowstring.getbyte(idx) end |