Class: Ragel::Array::Replace::Table
- Inherits:
-
Object
- Object
- Ragel::Array::Replace::Table
- Defined in:
- lib/ragel/array/replace.rb
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.
11 12 13 14 15 |
# File 'lib/ragel/array/replace.rb', line 11 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.
9 10 11 |
# File 'lib/ragel/array/replace.rb', line 9 def end_line @end_line end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
9 10 11 |
# File 'lib/ragel/array/replace.rb', line 9 def source @source end |
#start_line ⇒ Object (readonly)
Returns the value of attribute start_line.
9 10 11 |
# File 'lib/ragel/array/replace.rb', line 9 def start_line @start_line end |