Class: Domain::BadFile
- Inherits:
-
Object
- Object
- Domain::BadFile
- Defined in:
- lib/plugins/pre_commit/domain/bad_file.rb
Overview
Represents a file with style errors.
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, errors) ⇒ BadFile
constructor
Instanciate a default bad file.
Constructor Details
#initialize(name, errors) ⇒ BadFile
Instanciate a default bad file.
15 16 17 18 |
# File 'lib/plugins/pre_commit/domain/bad_file.rb', line 15 def initialize(name, errors) @name = name @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
8 9 10 |
# File 'lib/plugins/pre_commit/domain/bad_file.rb', line 8 def errors @errors end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/plugins/pre_commit/domain/bad_file.rb', line 8 def name @name end |