Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (20 sloc) 0.409 kb
module Virtus
class Attribute
# Hash
#
# @example
# class Post
# include Virtus
#
# attribute :meta, Hash
# end
#
# Post.new(:meta => { :tags => %w(foo bar) })
#
class Hash < Object
primitive ::Hash
coercion_method :to_hash
default primitive.new
end # class Hash
end # class Attribute
end # module Virtus
Jump to Line
Something went wrong with that request. Please try again.