Sha256: 2f3e56603739f69b5f8fecb577581dd3280947f43098082fc4e62efe3d54d3f7

Contents?: true

Size: 565 Bytes

Versions: 2

Compression:

Stored size: 565 Bytes

Contents

class CallExampleActor
  include Celluloid

  def initialize(next_actor = nil)
    @next = next_actor
  end

  def actual_method; end

  def inspect
    raise "Don't call!"
  end

  def chained_call_ids
    [call_chain_id, @next.call_chain_id]
  end
end

# de DEPRECATE:

class DeprecatedCallExampleActor
  include Celluloid

  def initialize(next_actor = nil)
    @next = next_actor
  end

  def actual_method; end

  def inspect
    raise "Please don't call me! I'm not ready yet!"
  end

  def chained_call_ids
    [call_chain_id, @next.call_chain_id]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
celluloid-0.18.0 spec/support/examples/call_class.rb
celluloid-0.18.0.pre2 spec/support/examples/call_class.rb