Class: Clack::Prompts::Tasks::Task
- Inherits:
-
Data
- Object
- Data
- Clack::Prompts::Tasks::Task
- Defined in:
- lib/clack/prompts/tasks.rb
Overview
A single task definition with title, callable, and enabled flag.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
readonly
Whether the task should run (default: true).
-
#task ⇒ Proc
readonly
The task to execute.
-
#title ⇒ String
readonly
The task title.
Instance Attribute Details
#enabled ⇒ Boolean (readonly)
Returns whether the task should run (default: true).
54 |
# File 'lib/clack/prompts/tasks.rb', line 54 Task = Data.define(:title, :task, :enabled) |
#task ⇒ Proc (readonly)
Returns the task to execute.
54 |
# File 'lib/clack/prompts/tasks.rb', line 54 Task = Data.define(:title, :task, :enabled) |
#title ⇒ String (readonly)
Returns the task title.
54 |
# File 'lib/clack/prompts/tasks.rb', line 54 Task = Data.define(:title, :task, :enabled) |