Class: PuppetfileResolver::Puppetfile::DocumentValidationErrorBase
- Inherits:
-
Object
- Object
- PuppetfileResolver::Puppetfile::DocumentValidationErrorBase
- Defined in:
- lib/puppetfile-resolver/puppetfile/validation_errors.rb
Direct Known Subclasses
DocumentDuplicateModuleError, DocumentInvalidModuleError, DocumentResolutionErrorBase
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#puppet_module ⇒ Object
Returns the value of attribute puppet_module.
Instance Method Summary collapse
-
#initialize(message, puppet_module) ⇒ DocumentValidationErrorBase
constructor
A new instance of DocumentValidationErrorBase.
- #to_s ⇒ Object
Constructor Details
#initialize(message, puppet_module) ⇒ DocumentValidationErrorBase
Returns a new instance of DocumentValidationErrorBase.
9 10 11 12 |
# File 'lib/puppetfile-resolver/puppetfile/validation_errors.rb', line 9 def initialize(, puppet_module) @message = @puppet_module = puppet_module end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
6 7 8 |
# File 'lib/puppetfile-resolver/puppetfile/validation_errors.rb', line 6 def @message end |
#puppet_module ⇒ Object
Returns the value of attribute puppet_module.
7 8 9 |
# File 'lib/puppetfile-resolver/puppetfile/validation_errors.rb', line 7 def puppet_module @puppet_module end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/puppetfile-resolver/puppetfile/validation_errors.rb', line 14 def to_s "#{puppet_module.name}: #{}" end |