From dcfd1c87654f5b6e3bf9b679d30a86cfb0488d9d Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Wed, 22 Jul 2020 13:51:45 +0000 Subject: [PATCH] Expose `@filename` from the `Plugin` class --- src/plugin/plugin.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugin/plugin.cr b/src/plugin/plugin.cr index 42c9139..1769e73 100644 --- a/src/plugin/plugin.cr +++ b/src/plugin/plugin.cr @@ -19,6 +19,7 @@ class Plugin getter {{name.id}} = "" {% end %} getter wait_seconds : UInt64 = 0 + getter filename def self.list dir = Config.current.plugin_path @@ -34,7 +35,7 @@ class Plugin end end - def initialize(filename : String) + def initialize(@filename : String) dir = Config.current.plugin_path Dir.mkdir_p dir unless Dir.exists? dir