Class: Renogen::ExtractionStratagies::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/renogen/extraction_stratagies/base.rb

Overview

Template for all extraction stratagies

Direct Known Subclasses

YamlFile::Provider

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



13
14
15
# File 'lib/renogen/extraction_stratagies/base.rb', line 13

def initialize(options={})
  @changelog ||= ChangeLog::Model.new
end

Class Method Details

.register(identifier) ⇒ Object

Adds class with identifier to extraction stratagies

Parameters:

  • identifier (String)


9
10
11
# File 'lib/renogen/extraction_stratagies/base.rb', line 9

def self.register(identifier)
  Renogen::ExtractionStratagies.add(identifier.to_sym, self)
end

Instance Method Details

#extractNotImplementedError

Parse changes from source

Returns:

  • (NotImplementedError)

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/renogen/extraction_stratagies/base.rb', line 20

def extract
  raise NotImplementedError
end