Class: Clack::Prompts::Tasks::Task

Inherits:
Data
  • Object
show all
Defined in:
lib/clack/prompts/tasks.rb

Overview

A single task definition with title, callable, and enabled flag.

Instance Attribute Summary collapse

Instance Attribute Details

#enabledBoolean (readonly)

Returns whether the task should run (default: true).

Returns:

  • (Boolean)

    whether the task should run (default: true)



54
# File 'lib/clack/prompts/tasks.rb', line 54

Task = Data.define(:title, :task, :enabled)

#taskProc (readonly)

Returns the task to execute.

Returns:

  • (Proc)

    the task to execute



54
# File 'lib/clack/prompts/tasks.rb', line 54

Task = Data.define(:title, :task, :enabled)

#titleString (readonly)

Returns the task title.

Returns:

  • (String)

    the task title



54
# File 'lib/clack/prompts/tasks.rb', line 54

Task = Data.define(:title, :task, :enabled)