Sha256: 152028edab90fa4001efd954ecbfaf5a86c44a9955723c4d6bdc409e40dda0c0

Contents?: true

Size: 334 Bytes

Versions: 2

Compression:

Stored size: 334 Bytes

Contents

class Mona::Task
  include Mona::Mixins

  attr_reader :name, :on, :block

  sig do
    params(
      name: Symbol,
      on: Symbol,
      block: T.proc.params(args: T.anything).returns(T.anything),
    )
    .void
  end
  def initialize(name:, on:, block:)
    @name = name.to_sym
    @on = on
    @block = block

    nil
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mona-0.2.3 lib/mona/task.rb
mona-0.2.2 lib/mona/task.rb