tty-config
tty-config copied to clipboard
[FIXED] self.class returns Class and self returns App.
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.
Thanks!