lib/octopress-ink/plugins.rb in octopress-ink-1.0.0.rc.45 vs lib/octopress-ink/plugins.rb in octopress-ink-1.0.0.rc.46

- old
+ new

@@ -1,10 +1,15 @@ module Octopress module Ink module Plugins extend self + attr_reader :registered + @registered = false + @plugins = [] + @user_plugins = [] + def theme @theme end def each(&block) @@ -37,14 +42,12 @@ [@theme].concat(@plugins).concat(@user_plugins).compact end def reset @static_files = [] - @plugins = [] - @user_plugins = [] + @registered = false @css_tags = [] @js_tags = [] - @registered = false end def register unless @registered @registered = true