Class: RubiGen::PathSource
Overview
PathSource looks for generators in a filesystem directory.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Attributes inherited from Source
Instance Method Summary collapse
- #==(source) ⇒ Object
-
#each ⇒ Object
Yield each eligible subdirectory.
-
#initialize(label, path) ⇒ PathSource
constructor
A new instance of PathSource.
Methods inherited from Source
Constructor Details
#initialize(label, path) ⇒ PathSource
Returns a new instance of PathSource.
216 217 218 219 |
# File 'lib/rubigen/lookup.rb', line 216 def initialize(label, path) super label @path = File. path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
214 215 216 |
# File 'lib/rubigen/lookup.rb', line 214 def path @path end |
Instance Method Details
#==(source) ⇒ Object
230 231 232 |
# File 'lib/rubigen/lookup.rb', line 230 def ==(source) self.class == source.class && path == source.path end |