Class: Set
Instance Method Summary collapse
Instance Method Details
#encode_with(coder) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/psych/core_ext.rb', line 27 def encode_with(coder) hash = {} each do |m| hash[m] = true end coder["hash"] = hash coder end |
#init_with(coder) ⇒ Object
36 37 38 |
# File 'lib/psych/core_ext.rb', line 36 def init_with(coder) replace(coder["hash"].keys) end |