123456789_123456789_123456789_123456789_123456789_

Class: Set

Relationships & Source Files
Inherits: Object
Defined in: ext/psych/lib/psych/core_ext.rb

Instance Method Summary

Instance Method Details

#encode_with(coder)

[ GitHub ]

  
# File 'ext/psych/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)

[ GitHub ]

  
# File 'ext/psych/lib/psych/core_ext.rb', line 36

def init_with(coder)
  replace(coder["hash"].keys)
end