Class: Ragel::Bitmap::Replace::Table
- Inherits:
-
Object
- Object
- Ragel::Bitmap::Replace::Table
- Defined in:
- lib/ragel/bitmap/replace.rb
Overview
Represents a table declaration in the source
Instance Attribute Summary collapse
-
#end_line ⇒ Object
readonly
Returns the value of attribute end_line.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#start_line ⇒ Object
readonly
Returns the value of attribute start_line.
Instance Method Summary collapse
-
#initialize(left, right, lineno) ⇒ Table
constructor
A new instance of Table.
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_line ⇒ Object (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 |
#source ⇒ Object (readonly)
Returns the value of attribute source.
84 85 86 |
# File 'lib/ragel/bitmap/replace.rb', line 84 def source @source end |
#start_line ⇒ Object (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 |