Class: RuboCop::Git::PseudoResource

Inherits:
Object
  • Object
show all
Defined in:
lib/rubocop/git/pseudo_resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ PseudoResource

Returns a new instance of PseudoResource.



6
7
8
9
# File 'lib/rubocop/git/pseudo_resource.rb', line 6

def initialize(filename)
  @filename = filename
  @patch    = ''
end

Instance Attribute Details

#filenameObject (readonly)

Returns the value of attribute filename.



4
5
6
# File 'lib/rubocop/git/pseudo_resource.rb', line 4

def filename
  @filename
end

#patchObject (readonly)

Returns the value of attribute patch.



4
5
6
# File 'lib/rubocop/git/pseudo_resource.rb', line 4

def patch
  @patch
end

Instance Method Details

#statusObject



11
12
13
# File 'lib/rubocop/git/pseudo_resource.rb', line 11

def status
  'modified'
end