lib/hotcell.rb in hotcell-0.0.1 vs lib/hotcell.rb in hotcell-0.1.0
- old
+ new
@@ -1,19 +1,24 @@
require 'active_support/all'
require 'hotcell/version'
+require 'hotcell/resolver'
require 'hotcell/config'
require 'hotcell/errors'
+
+module Hotcell
+ def self.config; Config.instance; end
+
+ singleton_class.delegate :commands, :blocks, :helpers, :register_command, :register_helpers,
+ :resolver, :resolver=, to: :config
+end
+
+require 'hotcell/manipulator'
+require 'hotcell/extensions'
+require 'hotcell/source'
require 'hotcell/lexer'
+require 'hotcell/lexerr'
+require 'hotcell/lexerc'
require 'hotcell/parser'
require 'hotcell/node'
+require 'hotcell/commands'
require 'hotcell/context'
-require 'hotcell/manipulator'
-require 'hotcell/extensions'
require 'hotcell/template'
-
-module Hotcell
- [:commands, :blocks, :subcommands, :register_command].each do |method|
- define_singleton_method method do
- Config.instance.send(method)
- end
- end
-end