Class: Doing::WWID
- Includes:
- Display, Color, Editor, FileTools, Filter, Guess, Interactive, Modify, Tags, Timers, WWIDUtil
- Defined in:
- lib/doing/wwid.rb
Overview
Main "What Was I Doing" methods
Constant Summary
Constants included from Color
Color::ATTRIBUTES, Color::ATTRIBUTE_NAMES, Color::COLORED_REGEXP
Instance Attribute Summary collapse
-
#additional_configs ⇒ Object
readonly
Returns the value of attribute additional_configs.
-
#config ⇒ Object
For backwards compatibility where @wwid.config was accessed instead of Doing.config.settings.
-
#config_file ⇒ Object
Returns the value of attribute config_file.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#current_section ⇒ Object
readonly
Returns the value of attribute current_section.
-
#default_option ⇒ Object
Returns the value of attribute default_option.
-
#doing_file ⇒ Object
readonly
Returns the value of attribute doing_file.
-
#initial_content ⇒ Object
readonly
Returns the value of attribute initial_content.
Instance Method Summary collapse
-
#get_view(title) ⇒ Object
Gets a view from configuration.
-
#initialize ⇒ WWID
constructor
Initializes the object.
-
#logger ⇒ Object
Logger.
-
#sections ⇒ Array
List sections.
-
#views ⇒ Array
List available views.
Methods included from Color
#attributes, coloring?, #support?, template, #uncolor
Constructor Details
#initialize ⇒ WWID
Initializes the object.
Instance Attribute Details
#additional_configs ⇒ Object (readonly)
Returns the value of attribute additional_configs.
#config ⇒ Object
For backwards compatibility where @wwid.config was accessed instead of Doing.config.settings
#config_file ⇒ Object
Returns the value of attribute config_file.
#content ⇒ Object (readonly)
Returns the value of attribute content.
#current_section ⇒ Object (readonly)
Returns the value of attribute current_section.
#default_option ⇒ Object
Returns the value of attribute default_option.
#doing_file ⇒ Object (readonly)
Returns the value of attribute doing_file.
#initial_content ⇒ Object (readonly)
Returns the value of attribute initial_content.
Instance Method Details
#get_view(title) ⇒ Object
Gets a view from configuration
#logger ⇒ Object
Logger
Responds to :debug, :info, :warn, and :error
Each method takes a topic, and a message or block
Example: debug('Hooks', 'Hook 1 triggered')
#sections ⇒ Array
List sections
#views ⇒ Array
List available views