Commits

tenderlove committed c8dc7be

implement encode_with to squash warnings from psych

Comments (0)

Files changed (1)

lib/bundler/rubygems_ext.rb

 
     alias eql? ==
 
+    def encode_with(coder)
+      to_yaml_properties.each do |ivar|
+        coder[ivar.to_s.sub(/^@/, '')] = instance_variable_get(ivar)
+      end
+    end
+
     def to_yaml_properties
       instance_variables.reject { |p| ["@source", "@groups"].include?(p.to_s) }
     end