Sha256: d9d7dad4aa8e4e81b68ca174dacca97a18beda5d51c19c47024ba2c6fcbd5f1a

Contents?: true

Size: 563 Bytes

Versions: 4

Compression:

Stored size: 563 Bytes

Contents

class CallExampleActor
  include Celluloid

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

  def actual_method; end

  def inspect
    fail "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
    fail "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

4 entries across 4 versions & 1 rubygems

Version Path
celluloid-0.17.4 spec/support/examples/call_class.rb
celluloid-0.18.0.pre spec/support/examples/call_class.rb
celluloid-0.17.3 spec/support/examples/call_class.rb
celluloid-0.17.2 spec/support/examples/call_class.rb