lib/rubocop/git/pseudo_resource.rb in rubocop-git-0.0.1 vs lib/rubocop/git/pseudo_resource.rb in rubocop-git-0.0.2
- old
+ new
@@ -1,6 +1,16 @@
module RuboCop
module Git
- class PseudoResource < Struct.new(:filename, :status, :patch)
+ class PseudoResource
+ attr_reader :filename, :patch
+
+ def initialize(filename)
+ @filename = filename
+ @patch = ''
+ end
+
+ def status
+ 'modified'
+ end
end
end
end