Class: Literal::Result::Thrown
- Inherits:
-
Object
- Object
- Literal::Result::Thrown
- Defined in:
- lib/literal/result.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(result) ⇒ Thrown
constructor
A new instance of Thrown.
Constructor Details
#initialize(result) ⇒ Thrown
Returns a new instance of Thrown.
5 6 7 8 |
# File 'lib/literal/result.rb', line 5 def initialize(result) @result = result freeze end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
10 11 12 |
# File 'lib/literal/result.rb', line 10 def result @result end |