Sha256: 875471c6c7fbe8833875a78264f906380c790572936a178602458e4798a89f91
Contents?: true
Size: 451 Bytes
Versions: 3
Compression:
Stored size: 451 Bytes
Contents
class Checked class Demand class Hashs < Sinatra::Base include Checked::Arch map '/hash!' get def check! demand hash?(return!), "...is not a Hash." end get def symbol_keys! all_syms = return!.keys.all? { |k| k.is_a?(Symbol) } demand all_syms, '...must have all symbol keys.' end end # === class Hashs end # === class Demand end # === class Checked
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
Checked-2.0.2 | lib/Checked/Demand/Hashs.rb |
Checked-2.0.1 | lib/Checked/Demand/Hashs.rb |
Checked-2.0.0 | lib/Checked/Demand/Hashs.rb |