Module: Telegram::Bot::ClientStub::StubbedConstructor

Defined in:
lib/telegram/bot/client_stub.rb

Instance Method Summary collapse

Instance Method Details

#new(*args, **kwargs) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/telegram/bot/client_stub.rb', line 8

def new(*args, **kwargs)
  if self == ClientStub || !ClientStub.stub_all?
    super
  else
    ClientStub.new(*args, **kwargs)
  end
end