Exception: Jr::ReservedMethod
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
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(jr, method, msg = @@message) ⇒ ReservedMethod
constructor
A new instance of ReservedMethod.
- #is(thenameofthereservedmethod.) ⇒ Object
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
#method ⇒ Object (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 |