Exception: Context::MethodOverrideError

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

Instance Method Summary collapse

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

#messageObject



11
12
13
14
# File 'lib/context/base_context.rb', line 11

def message
  "#{@context_class.name} can not overwrite methods already defined in "\
  "the context chain: #{@method_names}"
end