Class: Revamp::CLI::Execution
- Inherits:
-
Object
- Object
- Revamp::CLI::Execution
- Defined in:
- lib/revamp/cli.rb
Overview
An execution wrapper
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(success, value = nil) ⇒ Execution
constructor
A new instance of Execution.
- #success? ⇒ Boolean
Constructor Details
#initialize(success, value = nil) ⇒ Execution
Returns a new instance of Execution.
90 91 92 93 |
# File 'lib/revamp/cli.rb', line 90 def initialize(success, value = nil) @success = success @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
89 90 91 |
# File 'lib/revamp/cli.rb', line 89 def value @value end |
Instance Method Details
#success? ⇒ Boolean
95 96 97 |
# File 'lib/revamp/cli.rb', line 95 def success? @success == true end |