Class: Kumi::Syntax::Location
- Inherits:
-
Struct
- Object
- Struct
- Kumi::Syntax::Location
- Defined in:
- lib/kumi/syntax/location.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#file ⇒ Object
Returns the value of attribute file.
-
#line ⇒ Object
Returns the value of attribute line.
Instance Method Summary collapse
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column
3 4 5 |
# File 'lib/kumi/syntax/location.rb', line 3 def column @column end |
#file ⇒ Object
Returns the value of attribute file
3 4 5 |
# File 'lib/kumi/syntax/location.rb', line 3 def file @file end |
#line ⇒ Object
Returns the value of attribute line
3 4 5 |
# File 'lib/kumi/syntax/location.rb', line 3 def line @line end |
Instance Method Details
#to_s ⇒ Object
4 5 6 |
# File 'lib/kumi/syntax/location.rb', line 4 def to_s "#{file} line=#{line} column=#{column}" end |