Class: Hashira::Coupling::Catalog
- Inherits:
-
Object
- Object
- Hashira::Coupling::Catalog
- Includes:
- Enumerable
- Defined in:
- lib/hashira/coupling/catalog.rb
Instance Method Summary collapse
- #each ⇒ Object
- #folders ⇒ Object
-
#initialize(definitions) ⇒ Catalog
constructor
A new instance of Catalog.
- #prefix ⇒ Object
- #roots ⇒ Object
- #strip(path) ⇒ Object
Constructor Details
#initialize(definitions) ⇒ Catalog
Returns a new instance of Catalog.
6 7 8 |
# File 'lib/hashira/coupling/catalog.rb', line 6 def initialize(definitions) @definitions = definitions end |
Instance Method Details
#each ⇒ Object
10 |
# File 'lib/hashira/coupling/catalog.rb', line 10 def each(&) = entries.each(&) |
#folders ⇒ Object
18 |
# File 'lib/hashira/coupling/catalog.rb', line 18 def folders = @definitions.packages |
#prefix ⇒ Object
12 |
# File 'lib/hashira/coupling/catalog.rb', line 12 def prefix = naming.segments |
#roots ⇒ Object
16 |
# File 'lib/hashira/coupling/catalog.rb', line 16 def roots = @definitions.roots |
#strip(path) ⇒ Object
14 |
# File 'lib/hashira/coupling/catalog.rb', line 14 def strip(path) = naming.strip(path) |