aboutsummaryrefslogtreecommitdiffstats
path: root/core/plugin.rb
diff options
context:
space:
mode:
authorToshiaki Asai <toshi.alternative@gmail.com>2014-12-22 02:06:37 +0900
committerToshiaki Asai <toshi.alternative@gmail.com>2014-12-22 02:06:37 +0900
commit742c5ef080fb5e1d1371e01309434800ce04447e (patch)
tree2e767e1e2ce5cb6cfdf4c3ed6ba51a404d24eae4 /core/plugin.rb
parentc28135a4c6f3d5141be66b7d4f0914639549b3bf (diff)
parentb08264d1b8b70ba5612c217bcf9eb6e71a93c6d3 (diff)
downloadmikutter-742c5ef080fb5e1d1371e01309434800ce04447e.tar.gz
Merge branch 'develop' into topic/722-skin
Diffstat (limited to 'core/plugin.rb')
-rw-r--r--core/plugin.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/plugin.rb b/core/plugin.rb
index f2464b79..f8828c1c 100644
--- a/core/plugin.rb
+++ b/core/plugin.rb
@@ -83,10 +83,14 @@ class Plugin
# spec
attr_accessor :spec
+ # 最初にプラグインがロードされた時刻(uninstallされるとリセットする)
+ attr_reader :defined_time
+
# ==== Args
# [plugin_name] プラグイン名
def initialize(*args)
super
+ @defined_time = Time.new.freeze
@events = Set.new
@filters = Set.new end