Class: Hashira::Coupling::Roster
- Inherits:
-
Object
- Object
- Hashira::Coupling::Roster
- Defined in:
- lib/hashira/coupling/roster.rb
Instance Method Summary collapse
-
#initialize(placed) ⇒ Roster
constructor
A new instance of Roster.
- #origins ⇒ Object
- #packages ⇒ Object
- #registry ⇒ Object
- #type?(path) ⇒ Boolean
- #types ⇒ Object
Constructor Details
#initialize(placed) ⇒ Roster
Returns a new instance of Roster.
4 5 6 |
# File 'lib/hashira/coupling/roster.rb', line 4 def initialize(placed) @placed = placed end |
Instance Method Details
#origins ⇒ Object
18 |
# File 'lib/hashira/coupling/roster.rb', line 18 def origins = registry.origins |
#packages ⇒ Object
25 |
# File 'lib/hashira/coupling/roster.rb', line 25 def packages = types.keys | registry.packages |
#registry ⇒ Object
8 9 10 11 |
# File 'lib/hashira/coupling/roster.rb', line 8 def registry admitted @_registry end |
#type?(path) ⇒ Boolean
20 21 22 23 |
# File 'lib/hashira/coupling/roster.rb', line 20 def type?(path) admitted @_typed.include?(path) end |
#types ⇒ Object
13 14 15 16 |
# File 'lib/hashira/coupling/roster.rb', line 13 def types admitted @_types end |