Class: GitCommander::Loader Abstract

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

Overview

This class is abstract.

The interface class outlining requirements for an operational Loader

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#registryObject (readonly)

Returns the value of attribute registry.



12
13
14
# File 'lib/git_commander/loader.rb', line 12

def registry
  @registry
end

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

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/git_commander/loader.rb', line 20

def load(_options = {})
  raise NotImplementedError
end

#systemObject



24
25
26
# File 'lib/git_commander/loader.rb', line 24

def system
  GitCommander::System
end