class Ragel::Bitmap::Replace::Table
Represents a table declaration in the source
Attributes
end_line[R]
source[R]
start_line[R]
Public Class Methods
new(left, right, lineno)
click to toggle source
# File lib/ragel/bitmap/replace.rb, line 40 def initialize(left, right, lineno) @source = source_from(left[3][1], right[1].map { |int| int[1].to_i }) @start_line = left[1][1][2][0] - 1 @end_line = lineno end
Private Instance Methods
source_from(name, numbers)
click to toggle source
# File lib/ragel/bitmap/replace.rb, line 48 def source_from(name, numbers) clazz, strings = Replace.bitmap_args_from(numbers) arguments = strings.map(&:inspect).join(', ') "self.#{name} = ::Ragel::Bitmap::#{clazz}.new(#{arguments})" end