Method: HTTP::Headers#each
- Defined in:
- lib/http/headers.rb
#each ⇒ Enumerator, Headers
Calls the given block once for each key/value pair in headers container.
173 174 175 176 177 178 |
# File 'lib/http/headers.rb', line 173 def each return to_enum(__method__) unless block_given? @pile.each { |item| yield(item[1..2]) } self end |