Exception: Context::MethodOverrideError
- Inherits:
-
StandardError
- Object
- StandardError
- Context::MethodOverrideError
- Defined in:
- lib/context/base_context.rb
Instance Method Summary collapse
-
#initialize(context_class, method_names) ⇒ MethodOverrideError
constructor
A new instance of MethodOverrideError.
- #message ⇒ Object
Constructor Details
#initialize(context_class, method_names) ⇒ MethodOverrideError
Returns a new instance of MethodOverrideError.
6 7 8 9 |
# File 'lib/context/base_context.rb', line 6 def initialize(context_class, method_names) @context_class = context_class @method_names = method_names end |
Instance Method Details
#message ⇒ Object
11 12 13 14 |
# File 'lib/context/base_context.rb', line 11 def "#{@context_class.name} can not overwrite methods already defined in "\ "the context chain: #{@method_names}" end |