Class: Hashira::Coupling::RollCall
- Inherits:
-
Object
- Object
- Hashira::Coupling::RollCall
- 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
-
#initialize(lists, homes) ⇒ RollCall
constructor
A new instance of RollCall.
- #rolls ⇒ Object
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
#rolls ⇒ Object
17 |
# File 'lib/hashira/coupling/roll_call.rb', line 17 def rolls = maximal(candidates.filter_map { entry(it) }).sort_by(&:words) |