lib/virtus/instance_methods.rb in virtus-0.0.5 vs lib/virtus/instance_methods.rb in virtus-0.0.6

- old
+ new

@@ -115,9 +115,16 @@ attributes.to_hash.each do |name, value| attribute_set(name, value) if respond_to?("#{name}=") end end + # @see Virtus::InstanceMethods#attributes + # + # @api public + def to_hash + attributes + end + private # Returns a value of the attribute with the given name # # @see Virtus::InstanceMethods#[]