lib/rubocop/git/pseudo_resource.rb in rubocop-git2-0.1.4 vs lib/rubocop/git/pseudo_resource.rb in rubocop-git2-0.1.5
- old
+ new
@@ -1,24 +1,20 @@
-module RuboCop
- module Git
- class PseudoResource
- attr_reader :patch, :pwd, :file_relative_path
+class RuboCop::Git::PseudoResource
+ attr_reader :patch, :pwd, :file_relative_path
- alias filename file_relative_path
+ alias filename file_relative_path
- def initialize(file_relative_path, pwd = Dir.pwd)
- @file_relative_path = file_relative_path
- @pwd = pwd
- @patch = ''
- end
+ def initialize(file_relative_path, pwd = Dir.pwd)
+ @file_relative_path = file_relative_path
+ @pwd = pwd
+ @patch = ''
+ end
- def absolute_path
- filename
- File.join(pwd, filename)
- end
+ def absolute_path
+ filename
+ File.join(pwd, filename)
+ end
- def status
- 'modified'
- end
- end
+ def status
+ 'modified'
end
end