lib/bankscrap/bank.rb
# Sets temporary HTTP headers, execute a code block
# and resets the headers
Sets temporary HTTP headers, execute a code block
and resets the headers
Sets temporary HTTP headers execute a code block and resets the headers
def with_headers(tmp_headers)
      current_headers = @headers
      add_headers(tmp_headers)
      yield
    ensure
      add_headers(current_headers)
    end
def with_headers ( tmp_headers ) current_headers = @headers add_headers ( tmp_headers ) yield ensure add_headers ( current_headers ) end
Sets temporary HTTP headers, execute a code block
and resets the headers
Sets temporary HTTP headers execute a code block and resets the headers
tmp_headers
<not_specific>