Exception: ChildFormatError
- Inherits:
-
StandardError
- Object
- StandardError
- ChildFormatError
- Defined in:
- lib/error.rb
Instance Method Summary collapse
-
#initialize(allowed_classes) ⇒ ChildFormatError
constructor
A new instance of ChildFormatError.
Constructor Details
#initialize(allowed_classes) ⇒ ChildFormatError
Returns a new instance of ChildFormatError.
2 3 4 5 |
# File 'lib/error.rb', line 2 def initialize(allowed_classes) = "The child must be an Html class on of: #{allowed_classes.join(', ')}" super() end |