Class: SafeOperation::Success
- Inherits:
-
Object
- Object
- SafeOperation::Success
- Defined in:
- lib/safe_operation/success.rb
Instance Method Summary collapse
-
#initialize(success) ⇒ Success
constructor
A new instance of Success.
- #result ⇒ Object
- #success? ⇒ Boolean
Constructor Details
#initialize(success) ⇒ Success
Returns a new instance of Success.
3 4 5 |
# File 'lib/safe_operation/success.rb', line 3 def initialize(success) @success = success end |
Instance Method Details
#result ⇒ Object
7 8 9 |
# File 'lib/safe_operation/success.rb', line 7 def result success end |
#success? ⇒ Boolean
11 12 13 |
# File 'lib/safe_operation/success.rb', line 11 def success? true end |