module Rsvp::Parsers
  class Hash
    # Constructs a new Ruby Hash schema parser.
    #
    # @param src (Hash) the Ruby Hash containing the schema definition.
    def initialize(src)
      unless src.is_a?(Hash)
        throw "Source object must be a Hash; received #{src.class}"
      end
      @src = src
    end

    def generate
    end
  end
end

module Rsvp::Parsers
  class Hash
    # Constructs a new Ruby Hash schema parser.
    #
    # @param src (Hash) the Ruby Hash containing the schema definition.
    def initialize(src)
      unless src.is_a?(::Hash)
        throw "Source object must be a Hash; received #{src.class}"
      end
      @src = src
    end

    def generate
    end
  end
end

Fix Hash check to use global namespace
Fix Hash check to use global namespace

Using `is_a?(Hash)` inside a custom class called `Hash` does not yield intended
results, specifically checking against the global Ruby hash type. Prepending the
global namespace identifier `::` fixes the issue.
