mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 11:25:29 -04:00
Expose @filename
from the Plugin
class
This commit is contained in:
parent
10b6047df8
commit
dcfd1c8765
@ -19,6 +19,7 @@ class Plugin
|
|||||||
getter {{name.id}} = ""
|
getter {{name.id}} = ""
|
||||||
{% end %}
|
{% end %}
|
||||||
getter wait_seconds : UInt64 = 0
|
getter wait_seconds : UInt64 = 0
|
||||||
|
getter filename
|
||||||
|
|
||||||
def self.list
|
def self.list
|
||||||
dir = Config.current.plugin_path
|
dir = Config.current.plugin_path
|
||||||
@ -34,7 +35,7 @@ class Plugin
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize(filename : String)
|
def initialize(@filename : String)
|
||||||
dir = Config.current.plugin_path
|
dir = Config.current.plugin_path
|
||||||
Dir.mkdir_p dir unless Dir.exists? dir
|
Dir.mkdir_p dir unless Dir.exists? dir
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user