Sha256: d3a381612a01ded1409b8cb98757a41acf09b9e55a2e9f83f8c6b0c4e759423c

Contents?: true

Size: 377 Bytes

Versions: 21

Compression:

Stored size: 377 Bytes

Contents

class Usher
  class Route
    class RequestMethod
  
      attr_reader :type, :value
  
      def initialize(type, value)
        @type = type
        @value = value
      end
      
      def hash
        type.hash + value.hash
      end
      
      def eql?(o)
        o.is_a?(self.class) && o.type == type && o.value == value
      end
      alias == eql?
    end
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
usher-0.4.8 lib/usher/route/request_method.rb