Class: RubyCop::Ruby::Position

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_cop/ruby/position.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#columnObject (readonly)

Returns the value of attribute column.



10
11
12
# File 'lib/ruby_cop/ruby/position.rb', line 10

def column
  @column
end

#linenoObject (readonly)

Returns the value of attribute lineno.



9
10
11
# File 'lib/ruby_cop/ruby/position.rb', line 9

def lineno
  @lineno
end