Exception: ActionController::Error::Exception
- Defined in:
- lib/vex/action_controller/error.rb
Overview
I don’t know why we have to pack the parameters into an array.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(args) ⇒ Exception
constructor
A new instance of Exception.
Constructor Details
#initialize(args) ⇒ Exception
Returns a new instance of Exception.
7 8 9 |
# File 'lib/vex/action_controller/error.rb', line 7 def initialize(args) @code, @text = *args end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/vex/action_controller/error.rb', line 5 def code @code end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/vex/action_controller/error.rb', line 5 def text @text end |