Class: IDL::Scanner::Position
- Inherits:
-
Struct
- Object
- Struct
- IDL::Scanner::Position
- Defined in:
- lib/ridl/scanner.rb,
lib/ridl/scanner.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#line ⇒ Object
Returns the value of attribute line.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column
33 34 35 |
# File 'lib/ridl/scanner.rb', line 33 def column @column end |
#line ⇒ Object
Returns the value of attribute line
33 34 35 |
# File 'lib/ridl/scanner.rb', line 33 def line @line end |
#name ⇒ Object
Returns the value of attribute name
33 34 35 |
# File 'lib/ridl/scanner.rb', line 33 def name @name end |
Instance Method Details
#inspect ⇒ Object
39 40 41 |
# File 'lib/ridl/scanner.rb', line 39 def inspect to_s end |
#to_s ⇒ Object
36 37 38 |
# File 'lib/ridl/scanner.rb', line 36 def to_s format("%s: line %d, column %d", name.to_s, line, column) end |