class RSGem::Tasks::Base

Base class for task objects. Child classes must implement the instance method perform.

Attributes

args[R]
context[R]

Public Class Methods

new(context:, **args) click to toggle source
# File lib/rsgem/tasks/base.rb, line 14
def initialize(context:, **args)
  @context = context
  @args = args
end

Public Instance Methods

call() click to toggle source
# File lib/rsgem/tasks/base.rb, line 19
def call
  with_output do
    perform
  end
end