Class: HttpMethod
- Inherits:
-
Object
- Object
- HttpMethod
- Defined in:
- lib/akephalos/htmlunit/ext/http_method.rb
Instance Method Summary collapse
Instance Method Details
#===(other) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/akephalos/htmlunit/ext/http_method.rb', line 2 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 |