Class: SimpleTemplater::Discoverer

Inherits:
Object
  • Object
show all
Defined in:
lib/simple-templater/discoverer.rb

Direct Known Subclasses

RubyGems

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scope) ⇒ Discoverer

Returns a new instance of Discoverer.



12
13
14
# File 'lib/simple-templater/discoverer.rb', line 12

def initialize(scope)
  @scope = scope
end

Instance Attribute Details

#scopeObject (readonly)

Returns the value of attribute scope.



11
12
13
# File 'lib/simple-templater/discoverer.rb', line 11

def scope
  @scope
end

Class Method Details

.detectObject



5
6
7
8
9
# File 'lib/simple-templater/discoverer.rb', line 5

def self.detect
  # TODO: coming in version 0.2
  require "simple-templater/discoverers/gems"
  SimpleTemplater::RubyGems
end

Instance Method Details

#runObject

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/simple-templater/discoverer.rb', line 16

def run
  raise NotImplementedError
end