Class: RubiGen::GemPathSource
- Inherits:
-
AbstractGemSource
- Object
- Source
- AbstractGemSource
- RubiGen::GemPathSource
- Defined in:
- lib/rubigen/lookup.rb
Overview
GemPathSource looks for generators within any RubyGem’s /filter_generators/**/<generator_name>_generator.rb file.
Instance Attribute Summary collapse
-
#filters ⇒ Object
Returns the value of attribute filters.
Attributes inherited from Source
Instance Method Summary collapse
- #==(source) ⇒ Object
-
#each ⇒ Object
Yield each generator within rails_generator subdirectories.
-
#initialize(*filters) ⇒ GemPathSource
constructor
A new instance of GemPathSource.
Methods inherited from Source
Constructor Details
#initialize(*filters) ⇒ GemPathSource
Returns a new instance of GemPathSource.
265 266 267 268 |
# File 'lib/rubigen/lookup.rb', line 265 def initialize(*filters) super() @filters = filters end |
Instance Attribute Details
#filters ⇒ Object
Returns the value of attribute filters.
263 264 265 |
# File 'lib/rubigen/lookup.rb', line 263 def filters @filters end |
Instance Method Details
#==(source) ⇒ Object
277 278 279 |
# File 'lib/rubigen/lookup.rb', line 277 def ==(source) self.class == source.class && filters == source.filters end |