Exception: Subaltern::BlacklistedMethodError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, meth) ⇒ BlacklistedMethodError

Returns a new instance of BlacklistedMethodError.



33
34
35
36
37
38
# File 'lib/subaltern/errors.rb', line 33

def initialize(klass, meth)

  @klass = klass
  @method = meth
  super("blacklisted : #meth (in this case : #{klass.inspect})")
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



31
32
33
# File 'lib/subaltern/errors.rb', line 31

def klass
  @klass
end

#methodObject (readonly)

Returns the value of attribute method.



31
32
33
# File 'lib/subaltern/errors.rb', line 31

def method
  @method
end