Sha256: 9c070cfe2487b71518419346a9e590f973678942cad662b4eacce897daa4576c

Contents?: true

Size: 164 Bytes

Versions: 4

Compression:

Stored size: 164 Bytes

Contents

class Typero::HashType < Typero::Type
  def default
    {}
  end

  def validate
    raise TypeError, 'Value is not hash type' unless @value.is_a?(Hash)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
typero-0.3.6 ./lib/typero/type/hash.rb
typero-0.3.4 ./lib/typero/type/hash.rb
typero-0.3.2 ./lib/typero/type/hash.rb
typero-0.3.0 ./lib/typero/type/hash.rb