Exception: Iron::Content::InvalidContent
- Defined in:
- app/models/iron/content.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ InvalidContent
constructor
A new instance of InvalidContent.
Constructor Details
#initialize(errors) ⇒ InvalidContent
Returns a new instance of InvalidContent.
10 11 12 13 |
# File 'app/models/iron/content.rb', line 10 def initialize(errors) @errors = errors super(errors.map { |path, | "#{path} #{Array().join(", ")}" }.join("; ")) end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
8 9 10 |
# File 'app/models/iron/content.rb', line 8 def errors @errors end |