Sha256: ecbb81ce4db6f8267109c77441992e179a7787e50578a819904598c3d8dd65c0

Contents?: true

Size: 308 Bytes

Versions: 10

Compression:

Stored size: 308 Bytes

Contents

class HttpMethod
  def ===(other)
    case other
    when HttpMethod
      super
    when :any
      true
    when :get
      self == self.class::GET
    when :post
      self == self.class::POST
    when :put
      self == self.class::PUT
    when :delete
      self == self.class::DELETE
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
akephalos-0.2.3-java lib/akephalos/htmlunit/ext/http_method.rb
akephalos-0.2.3 lib/akephalos/htmlunit/ext/http_method.rb
akephalos-0.2.2-java lib/akephalos/htmlunit/ext/http_method.rb
akephalos-0.2.2 lib/akephalos/htmlunit/ext/http_method.rb
akephalos-0.2.1 lib/akephalos/htmlunit/ext/http_method.rb
akephalos-0.2.0 lib/akephalos/htmlunit/ext/http_method.rb
akephalos-0.2.0-java lib/akephalos/htmlunit/ext/http_method.rb
akephalos-0.1.0-java lib/akephalos/htmlunit/ext/http_method.rb
akephalos-0.1.0 lib/akephalos/htmlunit/ext/http_method.rb
akephalos-0.0.5 lib/akephalos/htmlunit/ext/http_method.rb