Exception: WiseGopher::ParamAlreadyDeclared
- Defined in:
- lib/wise_gopher/errors.rb
Overview
raised when param are raw_param are declared with the same name
Instance Attribute Summary collapse
-
#param_name ⇒ Object
readonly
Returns the value of attribute param_name.
Instance Method Summary collapse
-
#initialize(param_name) ⇒ ParamAlreadyDeclared
constructor
A new instance of ParamAlreadyDeclared.
- #message ⇒ Object
Constructor Details
#initialize(param_name) ⇒ ParamAlreadyDeclared
Returns a new instance of ParamAlreadyDeclared.
71 72 73 |
# File 'lib/wise_gopher/errors.rb', line 71 def initialize(param_name) @param_name = param_name end |
Instance Attribute Details
#param_name ⇒ Object (readonly)
Returns the value of attribute param_name.
69 70 71 |
# File 'lib/wise_gopher/errors.rb', line 69 def param_name @param_name end |
Instance Method Details
#message ⇒ Object
75 76 77 |
# File 'lib/wise_gopher/errors.rb', line 75 def "'#{param_name}' is already declared either as 'raw_param' or standard 'param'." end |