class Ragel::Bitmap::Array16
Public Class Methods
new(highstring, lowstring)
click to toggle source
# File lib/ragel/bitmap.rb, line 27 def initialize(highstring, lowstring) @highstring = highstring @lowstring = lowstring end
Public Instance Methods
[](idx)
click to toggle source
# File lib/ragel/bitmap.rb, line 32 def [](idx) (@highstring.getbyte(idx) << 8) | @lowstring.getbyte(idx) end