Class: SimpleTemplater::Discoverer
- Inherits:
-
Object
- Object
- SimpleTemplater::Discoverer
- Defined in:
- lib/simple-templater/discoverer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(scope) ⇒ Discoverer
constructor
A new instance of Discoverer.
- #run ⇒ Object
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
#scope ⇒ Object (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
.detect ⇒ Object
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
#run ⇒ Object
16 17 18 |
# File 'lib/simple-templater/discoverer.rb', line 16 def run raise NotImplementedError end |