# File lib/rhc/servers.rb, line 47 def to_yaml_hash {}.tap do |h| instance_variables.each do |k| h[k.to_s.delete('@')] = instance_variable_get(k) end end.reject{|k, v| v.nil? || k == 'default' || k == 'persisted'}.inject({}){|h, (k, v)| h[k] = v.is_a?(String) || v.is_a?(Symbol) ? v.to_s : v; h } end