Class: Revamp::CLI::Execution

Inherits:
Object
  • Object
show all
Defined in:
lib/revamp/cli.rb

Overview

An execution wrapper

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject (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

Returns:

  • (Boolean)


95
96
97
# File 'lib/revamp/cli.rb', line 95

def success?
  @success == true
end