Class: Curlybars::Position
- Inherits:
-
Struct
- Object
- Struct
- Curlybars::Position
- Defined in:
- lib/curlybars/position.rb
Instance Attribute Summary collapse
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#length ⇒ Object
Returns the value of attribute length.
-
#line_number ⇒ Object
Returns the value of attribute line_number.
-
#line_offset ⇒ Object
Returns the value of attribute line_offset.
Instance Method Summary collapse
-
#initialize(file_name, line_number, line_offset, length = 0) ⇒ Position
constructor
A new instance of Position.
Constructor Details
#initialize(file_name, line_number, line_offset, length = 0) ⇒ Position
Returns a new instance of Position.
3 4 5 |
# File 'lib/curlybars/position.rb', line 3 def initialize(file_name, line_number, line_offset, length = 0) super end |
Instance Attribute Details
#file_name ⇒ Object
Returns the value of attribute file_name
2 3 4 |
# File 'lib/curlybars/position.rb', line 2 def file_name @file_name end |
#length ⇒ Object
Returns the value of attribute length
2 3 4 |
# File 'lib/curlybars/position.rb', line 2 def length @length end |
#line_number ⇒ Object
Returns the value of attribute line_number
2 3 4 |
# File 'lib/curlybars/position.rb', line 2 def line_number @line_number end |
#line_offset ⇒ Object
Returns the value of attribute line_offset
2 3 4 |
# File 'lib/curlybars/position.rb', line 2 def line_offset @line_offset end |