Class: Domain::BadFile

Inherits:
Object
  • Object
show all
Defined in:
lib/plugins/pre-commit/domain/bad_file.rb

Overview

Represents a file with style errors.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, errors) ⇒ BadFile

Instanciate a default bad file.



13
14
15
16
# File 'lib/plugins/pre-commit/domain/bad_file.rb', line 13

def initialize(name, errors)
  @name = name
  @errors = errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



6
7
8
# File 'lib/plugins/pre-commit/domain/bad_file.rb', line 6

def errors
  @errors
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/plugins/pre-commit/domain/bad_file.rb', line 6

def name
  @name
end