Class: GitCommander::LoaderResult Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/git_commander/loader_result.rb

Overview

This class is abstract.

A simple object to wrap errors loading any given loader

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLoaderResult

Returns a new instance of LoaderResult.



8
9
10
11
12
# File 'lib/git_commander/loader_result.rb', line 8

def initialize
  @errors = []
  @commands = []
  @plugins = []
end

Instance Attribute Details

#commandsObject

Returns the value of attribute commands.



6
7
8
# File 'lib/git_commander/loader_result.rb', line 6

def commands
  @commands
end

#errorsObject

Returns the value of attribute errors.



6
7
8
# File 'lib/git_commander/loader_result.rb', line 6

def errors
  @errors
end

#pluginsObject

Returns the value of attribute plugins.



6
7
8
# File 'lib/git_commander/loader_result.rb', line 6

def plugins
  @plugins
end

Instance Method Details

#success?Boolean

Returns:



14
15
16
# File 'lib/git_commander/loader_result.rb', line 14

def success?
  Array(errors).empty?
end