mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 11:25:29 -04:00
Type annotate the self.default
methods
This commit is contained in:
parent
bd8ae9497f
commit
7233e6e5c3
@ -369,7 +369,7 @@ class Library
|
||||
property dir : String, title_ids : Array(String), scan_interval : Int32,
|
||||
storage : Storage, title_hash : Hash(String, Title)
|
||||
|
||||
def self.default
|
||||
def self.default : self
|
||||
unless @@default
|
||||
@@default = new
|
||||
end
|
||||
|
@ -8,7 +8,7 @@ class Logger
|
||||
|
||||
@@severity : Log::Severity = :info
|
||||
|
||||
def self.default
|
||||
def self.default : self
|
||||
unless @@default
|
||||
@@default = new
|
||||
end
|
||||
|
@ -133,7 +133,7 @@ module MangaDex
|
||||
end
|
||||
|
||||
class API
|
||||
def self.default
|
||||
def self.default : self
|
||||
unless @@default
|
||||
@@default = new
|
||||
end
|
||||
|
@ -82,7 +82,7 @@ module MangaDex
|
||||
property downloader : Downloader?
|
||||
@path : String
|
||||
|
||||
def self.default
|
||||
def self.default : self
|
||||
unless @@default
|
||||
@@default = new
|
||||
end
|
||||
@ -270,7 +270,7 @@ module MangaDex
|
||||
@library_path : String = Config.current.library_path
|
||||
@downloading = false
|
||||
|
||||
def self.default
|
||||
def self.default : self
|
||||
unless @@default
|
||||
@@default = new
|
||||
end
|
||||
|
@ -9,7 +9,7 @@ class Context
|
||||
property storage : Storage
|
||||
property queue : MangaDex::Queue
|
||||
|
||||
def self.default
|
||||
def self.default : self
|
||||
unless @@default
|
||||
@@default = new
|
||||
end
|
||||
|
@ -15,7 +15,7 @@ end
|
||||
class Storage
|
||||
@path : String
|
||||
|
||||
def self.default
|
||||
def self.default : self
|
||||
unless @@default
|
||||
@@default = new
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user