Module: Howzit

Defined in:
lib/howzit.rb,
lib/howzit/task.rb,
lib/howzit/util.rb,
lib/howzit/topic.rb,
lib/howzit/colors.rb,
lib/howzit/config.rb,
lib/howzit/prompt.rb,
lib/howzit/version.rb,
lib/howzit/buildnote.rb,
lib/howzit/stringutils.rb,
lib/howzit/console_logger.rb

Overview

Primary module for this gem.

Defined Under Namespace

Modules: Color, Prompt, StringUtils, Util Classes: BuildNote, Config, ConsoleLogger, Task, Topic

Constant Summary collapse

VERSION =

Current Howzit version.

'2.1.6'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.argumentsObject

Returns the value of attribute arguments.



52
53
54
# File 'lib/howzit.rb', line 52

def arguments
  @arguments
end

.cli_argsObject

Returns the value of attribute cli_args.



52
53
54
# File 'lib/howzit.rb', line 52

def cli_args
  @cli_args
end

.named_argumentsObject

Returns the value of attribute named_arguments.



52
53
54
# File 'lib/howzit.rb', line 52

def named_arguments
  @named_arguments
end

Class Method Details

.buildnoteObject

Module storage for buildnote



79
80
81
# File 'lib/howzit.rb', line 79

def buildnote
  @buildnote ||= BuildNote.new
end

.configConfiguration

Holds a Configuration object with methods and a @settings hash

Returns:

  • (Configuration)

    Configuration object



58
59
60
# File 'lib/howzit.rb', line 58

def config
  @config ||= Config.new
end

.consoleObject

Convenience method for logging with Howzit.console.warn, etc.



86
87
88
# File 'lib/howzit.rb', line 86

def console
  @console ||= Howzit::ConsoleLogger.new(options[:log_level])
end

.has_read_upstreamObject



90
91
92
# File 'lib/howzit.rb', line 90

def has_read_upstream
  @has_read_upstream ||= false
end

.has_read_upstream=(has_read) ⇒ Object



94
95
96
# File 'lib/howzit.rb', line 94

def has_read_upstream=(has_read)
  @has_read_upstream = has_read
end

.inclusionsObject

Array for tracking inclusions and avoiding duplicates in output



65
66
67
# File 'lib/howzit.rb', line 65

def inclusions
  @inclusions ||= []
end

.optionsObject

Module storage for Howzit::Config.options



72
73
74
# File 'lib/howzit.rb', line 72

def options
  config.options
end