Class: GitCommander::Loader Abstract
- Inherits:
-
Object
- Object
- GitCommander::Loader
- Defined in:
- lib/git_commander/loader.rb
Overview
This class is abstract.
The interface class outlining requirements for an operational Loader
Direct Known Subclasses
Command::Loaders::FileLoader, Command::Loaders::Raw, Plugin::Loader
Instance Attribute Summary collapse
-
#registry ⇒ Object
readonly
Returns the value of attribute registry.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(registry) ⇒ Loader
constructor
A new instance of Loader.
-
#load(_options = {}) ⇒ Object
Expected to return an instance of GitCommander::LoaderResult.
- #system ⇒ Object
Constructor Details
#initialize(registry) ⇒ Loader
Returns a new instance of Loader.
14 15 16 17 |
# File 'lib/git_commander/loader.rb', line 14 def initialize(registry) @registry = registry @result = LoaderResult.new end |
Instance Attribute Details
#registry ⇒ Object (readonly)
Returns the value of attribute registry.
12 13 14 |
# File 'lib/git_commander/loader.rb', line 12 def registry @registry end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
12 13 14 |
# File 'lib/git_commander/loader.rb', line 12 def result @result end |
Instance Method Details
#load(_options = {}) ⇒ Object
Expected to return an instance of GitCommander::LoaderResult
20 21 22 |
# File 'lib/git_commander/loader.rb', line 20 def load( = {}) raise NotImplementedError end |
#system ⇒ Object
24 25 26 |
# File 'lib/git_commander/loader.rb', line 24 def system GitCommander::System end |