Class: RuboCop::Git::PseudoResource
- Inherits:
-
Object
- Object
- RuboCop::Git::PseudoResource
- Defined in:
- lib/rubocop/git/pseudo_resource.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#patch ⇒ Object
readonly
Returns the value of attribute patch.
Instance Method Summary collapse
-
#initialize(filename) ⇒ PseudoResource
constructor
A new instance of PseudoResource.
- #status ⇒ Object
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
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
4 5 6 |
# File 'lib/rubocop/git/pseudo_resource.rb', line 4 def filename @filename end |
#patch ⇒ Object (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
#status ⇒ Object
11 12 13 |
# File 'lib/rubocop/git/pseudo_resource.rb', line 11 def status 'modified' end |