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
34 35 36 |
# File 'lib/ridl/scanner.rb', line 34 def column @column end |
#line ⇒ Object
Returns the value of attribute line
34 35 36 |
# File 'lib/ridl/scanner.rb', line 34 def line @line end |
#name ⇒ Object
Returns the value of attribute name
34 35 36 |
# File 'lib/ridl/scanner.rb', line 34 def name @name end |
Instance Method Details
#inspect ⇒ Object
40 41 42 |
# File 'lib/ridl/scanner.rb', line 40 def inspect to_s end |
#to_s ⇒ Object
37 38 39 |
# File 'lib/ridl/scanner.rb', line 37 def to_s format('%s: line %d, column %d', name.to_s, line, column) end |