lib/bhm/validation.rb
# TODO: Assert the keys hash conform to a casing stantard
Assert the keys hash conform to a casing stantard
Assert the keys hash conform to a casing stantard
def validate_keys!
      if default_key_type
        klass = case default_key_type
        when :symbols then Symbol
        when :strings then String
        end
        keys.each do |string_or_sym|
          Errors::InvalidKeyType.raise!(receiver: self, key: string_or_sym, type: default_key_type) unless string_or_sym.is_a? klass
        end
      end
      case default_key_case
      when :lower_snake
      when :lowerCamel
      when :UpperCamel
      when :SCREAMING_SNAKE
      end
    end
def validate_keys! if default_key_type klass = case default_key_type when :symbols then Symbol when :strings then String end keys . each do | string_or_sym | Errors :: InvalidKeyType . raise! ( receiver : self , key : string_or_sym , type : default_key_type ) unless string_or_sym . is_a? klass end end case default_key_case when :lower_snake when :lowerCamel when :UpperCamel when :SCREAMING_SNAKE end end
TODO: Assert the keys hash conform to a casing stantard
TODO : Assert the keys hash conform to a casing stantard
# TODO # TODO # TODO # TODO