Sha256: 48c40aedd15ba5d24ffe4c9bfe37ee2921eaf3d8602196cea44f99be2072f823
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
module Checked class Demand class Hashs include Demand::Base namespace '/hash!' before def validate_target_class fail!("...must be a Hash") unless hash?(target) end route def symbol_keys! keys = target.keys if keys.all? { |k| k.is_a?(Symbol) } # do nothing else fail! '...must have all symbol keys.' end end end # === class Hashs end # === class Demand end # === module Checked
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
Checked-1.0.0 | lib/Checked/Demand/Hashs.rb |