Class: Hashira::Coupling::Roster

Inherits:
Object
  • Object
show all
Defined in:
lib/hashira/coupling/roster.rb

Instance Method Summary collapse

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

#originsObject



18
# File 'lib/hashira/coupling/roster.rb', line 18

def origins = registry.origins

#packagesObject



25
# File 'lib/hashira/coupling/roster.rb', line 25

def packages = types.keys | registry.packages

#registryObject



8
9
10
11
# File 'lib/hashira/coupling/roster.rb', line 8

def registry
  admitted
  @_registry
end

#type?(path) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
23
# File 'lib/hashira/coupling/roster.rb', line 20

def type?(path)
  admitted
  @_typed.include?(path)
end

#typesObject



13
14
15
16
# File 'lib/hashira/coupling/roster.rb', line 13

def types
  admitted
  @_types
end