Class: StableMatching::PreferenceList
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- StableMatching::PreferenceList
- Defined in:
- lib/stable-matching/preference_list.rb
Instance Method Summary collapse
-
#initialize(preference_list) ⇒ PreferenceList
constructor
A new instance of PreferenceList.
- #to_s ⇒ Object
Constructor Details
#initialize(preference_list) ⇒ PreferenceList
Returns a new instance of PreferenceList.
10 11 12 |
# File 'lib/stable-matching/preference_list.rb', line 10 def initialize(preference_list) super(preference_list) end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/stable-matching/preference_list.rb', line 14 def to_s map(&:name).to_s end |