Use Layout from uh-layout as default

This commit is contained in:
Thibault Jouan
2015-04-10 17:37:19 +00:00
parent 616b14eae2
commit b9b2bff853
5 changed files with 35 additions and 17 deletions

View File

@@ -26,6 +26,15 @@ module Uh
!!@debug
end
def layout
@layout ||= if layout_class
layout_class.new
else
require 'uh/layout'
::Uh::Layout.new
end
end
def logger
@logger ||= Logger.new(@output).tap do |o|
o.level = debug? ? LOGGER_LEVEL_DEBUG :