Class: Ragel::Bitmap::Replace::Table

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

Overview

Represents a table declaration in the source

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(left, right, lineno) ⇒ Table

Returns a new instance of Table.



86
87
88
89
90
# File 'lib/ragel/bitmap/replace.rb', line 86

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

Instance Attribute Details

#end_lineObject (readonly)

Returns the value of attribute end_line.



84
85
86
# File 'lib/ragel/bitmap/replace.rb', line 84

def end_line
  @end_line
end

#sourceObject (readonly)

Returns the value of attribute source.



84
85
86
# File 'lib/ragel/bitmap/replace.rb', line 84

def source
  @source
end

#start_lineObject (readonly)

Returns the value of attribute start_line.



84
85
86
# File 'lib/ragel/bitmap/replace.rb', line 84

def start_line
  @start_line
end