lib/whirled_peas.rb in whirled_peas-0.4.1 vs lib/whirled_peas.rb in whirled_peas-0.5.0
- old
+ new
@@ -1,13 +1,14 @@
require 'logger'
require 'whirled_peas/errors'
-
require 'whirled_peas/config'
+require 'whirled_peas/debugger'
require 'whirled_peas/frame'
+require 'whirled_peas/graphics'
+require 'whirled_peas/settings'
require 'whirled_peas/template'
-require 'whirled_peas/ui'
require 'whirled_peas/utils'
require 'whirled_peas/version'
module WhirledPeas
def self.config
@@ -16,13 +17,14 @@
def self.configure(&block)
yield config
end
- def self.template(&block)
- require 'whirled_peas/template/element'
+ def self.debug(config_file, option=nil)
+ Debugger.new(config_file, option).debug
+ end
- template = UI::Template.new
- yield template, template.settings
- template
+ def self.template(&block)
+ require 'whirled_peas/template/composer'
+ Template::Composer.build(&block)
end
end