Class: Mirah::Transform::Transformer::JMetaPosition
- Inherits:
-
Object
- Object
- Mirah::Transform::Transformer::JMetaPosition
- Defined in:
- lib/mirah/transform/transformer.rb
Instance Attribute Summary collapse
-
#end_column ⇒ Object
Returns the value of attribute end_column.
-
#end_line ⇒ Object
Returns the value of attribute end_line.
-
#end_offset ⇒ Object
Returns the value of attribute end_offset.
-
#endpos ⇒ Object
Returns the value of attribute endpos.
-
#file ⇒ Object
Returns the value of attribute file.
-
#source ⇒ Object
Returns the value of attribute source.
-
#start_column ⇒ Object
Returns the value of attribute start_column.
-
#start_line ⇒ Object
Returns the value of attribute start_line.
-
#start_offset ⇒ Object
Returns the value of attribute start_offset.
-
#startpos ⇒ Object
Returns the value of attribute startpos.
Instance Method Summary collapse
-
#initialize(transformer, startpos, endpos, source) ⇒ JMetaPosition
constructor
A new instance of JMetaPosition.
Constructor Details
#initialize(transformer, startpos, endpos, source) ⇒ JMetaPosition
Returns a new instance of JMetaPosition.
47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/mirah/transform/transformer.rb', line 47 def initialize(transformer, startpos, endpos, source) @startpos = startpos @endpos = endpos @transformer = transformer @start_line = startpos.line @start_offset = startpos.pos @start_column = startpos.col @end_line = endpos.line @end_offset = endpos.pos @end_column = endpos.col @source = source end |
Instance Attribute Details
#end_column ⇒ Object
Returns the value of attribute end_column.
45 46 47 |
# File 'lib/mirah/transform/transformer.rb', line 45 def end_column @end_column end |
#end_line ⇒ Object
Returns the value of attribute end_line.
44 45 46 |
# File 'lib/mirah/transform/transformer.rb', line 44 def end_line @end_line end |
#end_offset ⇒ Object
Returns the value of attribute end_offset.
44 45 46 |
# File 'lib/mirah/transform/transformer.rb', line 44 def end_offset @end_offset end |
#endpos ⇒ Object
Returns the value of attribute endpos.
45 46 47 |
# File 'lib/mirah/transform/transformer.rb', line 45 def endpos @endpos end |
#file ⇒ Object
Returns the value of attribute file.
44 45 46 |
# File 'lib/mirah/transform/transformer.rb', line 44 def file @file end |
#source ⇒ Object
Returns the value of attribute source.
45 46 47 |
# File 'lib/mirah/transform/transformer.rb', line 45 def source @source end |
#start_column ⇒ Object
Returns the value of attribute start_column.
45 46 47 |
# File 'lib/mirah/transform/transformer.rb', line 45 def start_column @start_column end |
#start_line ⇒ Object
Returns the value of attribute start_line.
44 45 46 |
# File 'lib/mirah/transform/transformer.rb', line 44 def start_line @start_line end |
#start_offset ⇒ Object
Returns the value of attribute start_offset.
44 45 46 |
# File 'lib/mirah/transform/transformer.rb', line 44 def start_offset @start_offset end |
#startpos ⇒ Object
Returns the value of attribute startpos.
45 46 47 |
# File 'lib/mirah/transform/transformer.rb', line 45 def startpos @startpos end |