Exception: RakeRoutesNormalizer::ExceptionWithDefaultMessage
- Inherits:
-
Exception
- Object
- Exception
- RakeRoutesNormalizer::ExceptionWithDefaultMessage
- Defined in:
- lib/rake_routes_normalizer/exception_with_default_message.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ExceptionWithDefaultMessage
constructor
A new instance of ExceptionWithDefaultMessage.
Constructor Details
#initialize(options = {}) ⇒ ExceptionWithDefaultMessage
Returns a new instance of ExceptionWithDefaultMessage.
4 5 6 7 8 9 10 |
# File 'lib/rake_routes_normalizer/exception_with_default_message.rb', line 4 def initialize(={}) @options = = .is_a?(String) ? : "#{self.class}. Got #{.inspect}" super() end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/rake_routes_normalizer/exception_with_default_message.rb', line 3 def @options end |