Class: Clack::TaskLogGroup
- Inherits:
-
Object
- Object
- Clack::TaskLogGroup
- Defined in:
- lib/clack/task_log.rb
Overview
A group within a TaskLog
Instance Method Summary collapse
-
#error(msg) ⇒ Object
Complete group with error.
-
#initialize(_name, parent) ⇒ TaskLogGroup
constructor
A new instance of TaskLogGroup.
-
#message(msg) ⇒ Object
Add a message to this group.
-
#success(msg) ⇒ Object
Complete group with success.
Constructor Details
#initialize(_name, parent) ⇒ TaskLogGroup
Returns a new instance of TaskLogGroup.
152 153 154 |
# File 'lib/clack/task_log.rb', line 152 def initialize(_name, parent) @parent = parent end |
Instance Method Details
#error(msg) ⇒ Object
Complete group with error
167 168 169 |
# File 'lib/clack/task_log.rb', line 167 def error(msg) @parent.(self, "#{Colors.red("✗")} #{msg}") end |
#message(msg) ⇒ Object
Add a message to this group
157 158 159 |
# File 'lib/clack/task_log.rb', line 157 def (msg) @parent.(self, msg) end |