Class: Kommando::CommandResult

Inherits:
Object
  • Object
show all
Defined in:
lib/kommando/command_result.rb

Defined Under Namespace

Classes: Failure, NonExistentError, NonExistentValue, Success

Class Method Summary collapse

Class Method Details

.failure(error) ⇒ Object



11
12
13
# File 'lib/kommando/command_result.rb', line 11

def self.failure(error)
  Failure.new(error)
end

.success(value) ⇒ Object



7
8
9
# File 'lib/kommando/command_result.rb', line 7

def self.success(value)
  Success.new(value)
end