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.
168 169 170 |
# File 'lib/clack/task_log.rb', line 168 def initialize(_name, parent) @parent = parent end |
Instance Method Details
#error(msg) ⇒ Object
Complete group with error
183 184 185 |
# File 'lib/clack/task_log.rb', line 183 def error(msg) @parent.(self, "#{Colors.red("✗")} #{msg}") end |
#message(msg) ⇒ Object
Add a message to this group
173 174 175 |
# File 'lib/clack/task_log.rb', line 173 def (msg) @parent.(self, msg) end |