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
joshbuddy-usher-0.3.3 lib/usher/route/request_method.rb
joshbuddy-usher-0.3.4 lib/usher/route/request_method.rb
joshbuddy-usher-0.3.5 lib/usher/route/request_method.rb
joshbuddy-usher-0.3.6 lib/usher/route/request_method.rb
joshbuddy-usher-0.4.0 lib/usher/route/request_method.rb
joshbuddy-usher-0.4.1 lib/usher/route/request_method.rb
joshbuddy-usher-0.4.10 lib/usher/route/request_method.rb
joshbuddy-usher-0.4.11 lib/usher/route/request_method.rb
joshbuddy-usher-0.4.2 lib/usher/route/request_method.rb
joshbuddy-usher-0.4.3 lib/usher/route/request_method.rb
joshbuddy-usher-0.4.5 lib/usher/route/request_method.rb
joshbuddy-usher-0.4.6 lib/usher/route/request_method.rb
joshbuddy-usher-0.4.7 lib/usher/route/request_method.rb
joshbuddy-usher-0.4.8 lib/usher/route/request_method.rb
joshbuddy-usher-0.5.1 lib/usher/route/request_method.rb
joshbuddy-usher-0.5.2 lib/usher/route/request_method.rb
joshbuddy-usher-0.5.3 lib/usher/route/request_method.rb
usher-0.5.3 lib/usher/route/request_method.rb
usher-0.5.2 lib/usher/route/request_method.rb
usher-0.5.1 lib/usher/route/request_method.rb