Method: Linzer::HTTP.known_http_methods
- Defined in:
- lib/linzer/http.rb
.known_http_methods ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/linzer/http.rb', line 9 def self.known_http_methods Net::HTTP .constants .map { |const| Net::HTTP.const_get(const) } .select { |klass| klass.is_a?(Class) && klass.const_defined?(:METHOD) } .map { |klass| klass::METHOD } .freeze end |