-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Is there a way to subclass Hashr and provide your own initialize method? Perhaps to do validation like so:
class Config < Hashr
def initialize(options)
super options
raise ConfigError, "output is not defined" unless output?
end
end...or for whatever other reason the user would want to subclass Hashr. This example doesn't work properly right now.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels