Class: ChipmunkBagValidator
- Inherits:
-
Object
- Object
- ChipmunkBagValidator
- Includes:
- ChipmunkValidatable
- Defined in:
- lib/chipmunk_bag_validator.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(package, errors = [], storage = Services.storage) ⇒ ChipmunkBagValidator
constructor
A new instance of ChipmunkBagValidator.
Methods included from ChipmunkValidatable
Constructor Details
#initialize(package, errors = [], storage = Services.storage) ⇒ ChipmunkBagValidator
8 9 10 11 12 13 |
# File 'lib/chipmunk_bag_validator.rb', line 8 def initialize(package, errors = [], storage = Services.storage) @package = package @src_path = package.src_path @bag = storage.new(src_path) if File.exist?(src_path) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors
6 7 8 |
# File 'lib/chipmunk_bag_validator.rb', line 6 def errors @errors end |