class Application
This Singleton contains application params
Constants
- NAME
- VERSION
Attributes
config_path[RW]
default[R]
global[RW]
groups[RW]
hall_of_fame[RW]
ialias[RW]
letter[R]
macros[RW]
options[RW]
output_basedir[R]
project_path[RW]
running_basedir[R]
script_path[RW]
test_name[RW]
uses[RW]
verbose[RW]
Public Class Methods
new()
click to toggle source
Initialize Application
instance
# File lib/teuton/application.rb, line 27 def initialize reset end
Public Instance Methods
debug()
click to toggle source
Return debug param @return Boolean
# File lib/teuton/application.rb, line 54 def debug @default[:debug] end
name()
click to toggle source
Return name param @return String
# File lib/teuton/application.rb, line 61 def name @default[:name] end
quiet?()
click to toggle source
Return quiet param @return Boolean
# File lib/teuton/application.rb, line 68 def quiet? return true if Application.instance.options['quiet'] return true unless Application.instance.verbose false end
reset()
click to toggle source
Reset param values rubocop:disable Metrics/MethodLength
# File lib/teuton/application.rb, line 34 def reset @letter = { good: '.', bad: 'F', error: '?', none: ' ' } @running_basedir = Dir.getwd @output_basedir = 'var' @default = { name: 'teuton', format: :txt, debug: false } @options = { 'lang' => 'en' } @verbose = true @global = {} @ialias = {} @macros = {} @groups = [] @uses = [] # TODO @hall_of_fame = [] end