Class: Moku::Task::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/moku/task/task.rb

Overview

A single conceptual step in a plan. Tasks primarily achieve their results through side effects.

Instance Method Summary collapse

Instance Method Details

#call(target) ⇒ Status

Parameters:

Returns:


13
14
15
# File 'lib/moku/task/task.rb', line 13

def call(target) # rubocop:disable Lint/UnusedMethodArgument
  Status.success
end

#to_sObject


17
18
19
# File 'lib/moku/task/task.rb', line 17

def to_s
  @to_s ||= self.class.to_s.split("::").last
end