Exception: Jr::ReservedMethod

Inherits:
Error
  • Object
show all
Defined in:
lib/jr.rb

Overview

ReservedMethod is raised if a method beginning with ‘rpc’ is called.

Constant Summary collapse

@@message =
'%s is a reserved method'

Instance Attribute Summary collapse

Attributes inherited from Error

#jr

Instance Method Summary collapse

Constructor Details

#initialize(jr, method, msg = @@message) ⇒ ReservedMethod

Returns a new instance of ReservedMethod.



49
50
51
52
# File 'lib/jr.rb', line 49

def initialize(jr, method, msg=@@message)
	@method = method
	super(jr, meth % msg)
end

Instance Attribute Details

#methodObject (readonly)

Returns the value of attribute method.



47
48
49
# File 'lib/jr.rb', line 47

def method
  @method
end

Instance Method Details

#is(thenameofthereservedmethod.) ⇒ Object



47
# File 'lib/jr.rb', line 47

attr_reader :method