Class: RubyCop::Ruby::Position
- Inherits:
-
Object
- Object
- RubyCop::Ruby::Position
- Defined in:
- lib/ruby_cop/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.
4 5 6 7 |
# File 'lib/ruby_cop/ruby/position.rb', line 4 def initialize(lineno, column) @lineno = lineno @column = column end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
10 11 12 |
# File 'lib/ruby_cop/ruby/position.rb', line 10 def column @column end |
#lineno ⇒ Object (readonly)
Returns the value of attribute lineno.
9 10 11 |
# File 'lib/ruby_cop/ruby/position.rb', line 9 def lineno @lineno end |