Exception: Exception
- Defined in:
- lib/cause.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(*a) ⇒ Exception
constructor
A new instance of Exception.
- #old_initialize ⇒ Object
Constructor Details
#initialize(*a) ⇒ Exception
Returns a new instance of Exception.
7 8 9 10 |
# File 'lib/cause.rb', line 7 def initialize(*a) @cause = $! old_initialize(*a) end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
3 4 5 |
# File 'lib/cause.rb', line 3 def cause @cause end |
Instance Method Details
#old_initialize ⇒ Object
5 |
# File 'lib/cause.rb', line 5 alias old_initialize initialize |