Sha256: 8adc67a074c1f3b59792b1fd1dc5fb3b443bfc6559ca12e8715d7d499d86b97c

Contents?: true

Size: 296 Bytes

Versions: 6

Compression:

Stored size: 296 Bytes

Contents

class Checked
  class Hashs

    def check!
      demand hash?(return!), "...is not a Hash."
    end

    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 Checked


Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
Checked-3.5.0 lib/Checked/Demand/Hashs.rb
Checked-3.4.0 lib/Checked/Demand/Hashs.rb
Checked-3.3.0 lib/Checked/Demand/Hashs.rb
Checked-3.2.0 lib/Checked/Demand/Hashs.rb
Checked-3.1.0 lib/Checked/Demand/Hashs.rb
Checked-3.0.0 lib/Checked/Demand/Hashs.rb