Sha256: 9c6ae2da7f5fa278542d6535e394f6fe297aba9e6450486e695b23c0fd0983e9

Contents?: true

Size: 312 Bytes

Versions: 8

Compression:

Stored size: 312 Bytes

Contents

# frozen_string_literal: true
class Ultravisor::Child::Cast
  attr_reader :method_name

  def initialize(method_name, args, blk)
    @method_name, @args, @blk = method_name, args, blk
  end

  def go!(receiver)
    receiver.__send__(@method_name, *@args, &@blk)
  end

  def child_restarted!
    # Meh
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
service_skeleton-2.2.0 ultravisor/lib/ultravisor/child/cast.rb
service_skeleton-2.1.0 ultravisor/lib/ultravisor/child/cast.rb
service_skeleton-1.0.5 ultravisor/lib/ultravisor/child/cast.rb
service_skeleton-2.0.2 ultravisor/lib/ultravisor/child/cast.rb
service_skeleton-2.0.1 ultravisor/lib/ultravisor/child/cast.rb
service_skeleton-2.0.0 ultravisor/lib/ultravisor/child/cast.rb
service_skeleton-1.0.4 ultravisor/lib/ultravisor/child/cast.rb
service_skeleton-0.0.0.1.ENOTAG ultravisor/lib/ultravisor/child/cast.rb