tty-config icon indicating copy to clipboard operation
tty-config copied to clipboard

[FIXED] self.class returns Class and self returns App.

Open dvarrui opened this issue 3 years ago • 1 comments

Describe the change

Fix bug into "1.1 app" example.

Change method:

class App
  ..
  def self.config
    @config ||= self.class.new.config
  end
end

by this new one:

class App
  ..
  def self.config
    @config ||= self.new.config
  end
end

Why?

Because "config" method exists on App class or App instances but no on Class class.

dvarrui avatar Oct 06 '22 09:10 dvarrui

Thanks!

dvarrui avatar Oct 06 '22 09:10 dvarrui