Class: Hashira::Coupling::RollCall

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

Defined Under Namespace

Classes: Roll

Constant Summary collapse

MIN_WORDS =
3
MIN_FILES =
3
MIN_PACKAGES =
2

Instance Method Summary collapse

Constructor Details

#initialize(lists, homes) ⇒ RollCall

Returns a new instance of RollCall.



12
13
14
15
# File 'lib/hashira/coupling/roll_call.rb', line 12

def initialize(lists, homes)
  @lists = lists
  @homes = homes
end

Instance Method Details

#rollsObject



17
# File 'lib/hashira/coupling/roll_call.rb', line 17

def rolls = maximal(candidates.filter_map { entry(it) }).sort_by(&:words)