Own-and-Ship / oas_agent

The Own & Ship Ruby agent
2 stars 0 forks source link

Redefining `OasAgent::Agent::Base#instance` emits warning #23

Open caius opened 1 year ago

caius commented 1 year ago

Observed on Ruby 2.3, haven't checked other rubies

/usr/src/app/lib/agent/agent.rb:24: warning: method redefined; discarding old instance
/usr/local/lib/ruby/2.3.0/singleton.rb:138: warning: previous definition of instance was here

I suspect include Singleton defines an instance method, then we're redefining it below.