Class: Ragel::Array::Replace::Table

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_lineObject (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

#sourceObject (readonly)

Returns the value of attribute source.



9
10
11
# File 'lib/ragel/array/replace.rb', line 9

def source
  @source
end

#start_lineObject (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