Class: Rubycop::Analyzer::Ruby::Position
- Inherits:
-
Object
- Object
- Rubycop::Analyzer::Ruby::Position
- Defined in:
- lib/rubycop/analyzer/ruby/position.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#lineno ⇒ Object
readonly
Returns the value of attribute lineno.
Instance Method Summary collapse
-
#initialize(lineno, column) ⇒ Position
constructor
A new instance of Position.
Constructor Details
#initialize(lineno, column) ⇒ Position
Returns a new instance of Position.
5 6 7 8 |
# File 'lib/rubycop/analyzer/ruby/position.rb', line 5 def initialize(lineno, column) @lineno = lineno @column = column end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
11 12 13 |
# File 'lib/rubycop/analyzer/ruby/position.rb', line 11 def column @column end |
#lineno ⇒ Object (readonly)
Returns the value of attribute lineno.
10 11 12 |
# File 'lib/rubycop/analyzer/ruby/position.rb', line 10 def lineno @lineno end |