Sha256: 2853690bbe67d0381111f6d743377c27900ec0311660f37d982ceaa08b82734a

Contents?: true

Size: 342 Bytes

Versions: 6

Compression:

Stored size: 342 Bytes

Contents

class Usher
  class Route
    class Http
  
      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?(Http) && o.type == type && o.value == value
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
joshbuddy-usher-0.0.2 lib/usher/route/http.rb
joshbuddy-usher-0.0.3 lib/usher/route/http.rb
joshbuddy-usher-0.1.0 lib/usher/route/http.rb
joshbuddy-usher-0.1.1 lib/usher/route/http.rb
joshbuddy-usher-0.1.2 lib/usher/route/http.rb
joshbuddy-usher-0.2.0 lib/usher/route/http.rb