Exception: Rubuild::Load::NameSpace::Context::Error::InstanceMethod

Inherits:
Rubuild::Load::NameSpace::Context::Error show all
Defined in:
lib/rubuild/load/namespace.rb

Overview

Rubuild::Load::NameSpace::Context::Error::InstanceMethod Defined an instance method of private class with no instance.

Instance Method Summary collapse

Constructor Details

#initialize(context, meth) ⇒ InstanceMethod

Create a new Rubuild::Load::NameSpace::Context::Error::InstanceMethod exception.

context

Private execution context in which a user attempted to define a method.

meth

Name of method the user attempted to define.



45
46
47
48
49
50
51
52
# File 'lib/rubuild/load/namespace.rb', line 45

def initialize(context, meth)
  super(
    context,
    "Defined instance method :#{meth} of private class with no " +
    "instance."
    )
  self.rubuild_load_namespace_context_error_instancemethod__meth = meth
end