Class: Typhoeus::EasyFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/osdn/cli/overrides.rb

Instance Method Summary collapse

Instance Method Details

#get(*args) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/osdn/cli/overrides.rb', line 6

def get(*args)
  easy = get_orig(*args)
  if OSDN::CLI._show_progress
    Ethon::Curl.set_option(:noprogress, false, easy.handle)
  else
    Ethon::Curl.set_option(:noprogress, true, easy.handle)
  end
  easy
end

#get_origObject



5
# File 'lib/osdn/cli/overrides.rb', line 5

alias_method :get_orig, :get