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

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

Instance Method Summary collapse

Instance Method Details

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



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

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