Class: Ragel::Bitmap::Array8
- Inherits:
-
Object
- Object
- Ragel::Bitmap::Array8
- Defined in:
- lib/ragel/bitmap.rb
Instance Method Summary collapse
- #[](idx) ⇒ Object
-
#initialize(string) ⇒ Array8
constructor
A new instance of Array8.
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 |