lib/octopress-ink/plugins.rb in octopress-ink-1.0.0.rc.43 vs lib/octopress-ink/plugins.rb in octopress-ink-1.0.0.rc.44
- old
+ new
@@ -1,17 +1,10 @@
module Octopress
module Ink
module Plugins
extend self
- @static_files = []
- @plugins = []
- @user_plugins = []
- @css_tags = []
- @js_tags = []
- @registered = false
-
def theme
@theme
end
def each(&block)
@@ -40,9 +33,18 @@
end
end
def plugins
[@theme].concat(@plugins).concat(@user_plugins).compact
+ end
+
+ def reset
+ @static_files = []
+ @plugins = []
+ @user_plugins = []
+ @css_tags = []
+ @js_tags = []
+ @registered = false
end
def register
unless @registered
@registered = true