Exception: Subaltern::NonWhitelistedMethodError

Inherits:
SubalternError
  • Object
show all
Defined in:
lib/subaltern/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, meth) ⇒ NonWhitelistedMethodError

Returns a new instance of NonWhitelistedMethodError.



56
57
58
59
60
61
# File 'lib/subaltern/errors.rb', line 56

def initialize(klass, meth)

  @klass = klass
  @method = meth
  super("not whitelisted : #{klass.inspect}##{meth}")
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



54
55
56
# File 'lib/subaltern/errors.rb', line 54

def klass
  @klass
end

#methodObject (readonly)

Returns the value of attribute method.



54
55
56
# File 'lib/subaltern/errors.rb', line 54

def method
  @method
end