class RuboCop::Git::PseudoResource

Attributes

file_relative_path[R]
filename[R]
patch[R]
pwd[R]

Public Class Methods

new(file_relative_path, pwd = Dir.pwd) click to toggle source
# File lib/rubocop/git/pseudo_resource.rb, line 8
def initialize(file_relative_path, pwd = Dir.pwd)
  @file_relative_path = file_relative_path
  @pwd = pwd
  @patch = ''
end

Public Instance Methods

absolute_path() click to toggle source
# File lib/rubocop/git/pseudo_resource.rb, line 14
def absolute_path
  filename
  File.join(pwd, filename)
end
status() click to toggle source
# File lib/rubocop/git/pseudo_resource.rb, line 19
def status
  'modified'
end