lib/rubocop/cop/cop.rb in rubocop-0.4.6 vs lib/rubocop/cop/cop.rb in rubocop-0.5.0
- old
+ new
@@ -24,10 +24,10 @@
def initialize(pos, type, text)
@pos, @type, @text = Position.new(*pos), type, text
end
def to_s
- "[[#{@pos.lineno}, #{@pos.column}], #@type, #{@text.inspect}]"
+ "[[#{@pos.lineno}, #{@pos.column}], #{@type}, #{@text.inspect}]"
end
end
class Cop
attr_accessor :offences