Class: StableMatching::PreferenceList

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/stable-matching/preference_list.rb

Instance Method Summary collapse

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_sObject



14
15
16
# File 'lib/stable-matching/preference_list.rb', line 14

def to_s
  map(&:name).to_s
end