Exception: ChildFormatError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/error.rb

Instance Method Summary collapse

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)
  message = "The child must be an Html class on of: #{allowed_classes.join(', ')}"
  super(message)
end