Class: GitCommander::LoaderResult Abstract
- Inherits:
-
Object
- Object
- GitCommander::LoaderResult
- 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
-
#commands ⇒ Object
Returns the value of attribute commands.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#plugins ⇒ Object
Returns the value of attribute plugins.
Instance Method Summary collapse
-
#initialize ⇒ LoaderResult
constructor
A new instance of LoaderResult.
- #success? ⇒ Boolean
Constructor Details
#initialize ⇒ LoaderResult
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
#commands ⇒ Object
Returns the value of attribute commands.
6 7 8 |
# File 'lib/git_commander/loader_result.rb', line 6 def commands @commands end |
#errors ⇒ Object
Returns the value of attribute errors.
6 7 8 |
# File 'lib/git_commander/loader_result.rb', line 6 def errors @errors end |
#plugins ⇒ Object
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
14 15 16 |
# File 'lib/git_commander/loader_result.rb', line 14 def success? Array(errors).empty? end |