Sha256: 9f80a7083a9cb945df56f68f178da38cea9562a15b046c9eedec79ee2640de86

Contents?: true

Size: 213 Bytes

Versions: 1

Compression:

Stored size: 213 Bytes

Contents

require 'virtus'

module Kamerling
  class Value
    include Virtus.value_object

    def self.vals(hash = {})
      values do
        hash.each { |name, klass| attribute name, klass }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kamerling-0.0.3 lib/kamerling/value.rb