.bundle/ruby/2.0.0/gems/celluloid-0.15.2/lib/celluloid.rb
# Obtain the bare Ruby object the actor is wrapping. This is useful for
# only a limited set of use cases like runtime metaprogramming. Interacting
# directly with the bare object foregoes any kind of thread safety that
# Celluloid would ordinarily provide you, and the object is guaranteed to
# be shared with at least the actor thread. Tread carefully.
#
# Bare objects can be identified via #inspect output:
#
#     >> actor
#      => #<Celluloid::Actor(Foo:0x3fefcb77c194)>
#     >> actor.bare_object
#      => #<WARNING: BARE CELLULOID OBJECT (Foo:0x3fefcb77c194)>
#
Obtain the bare Ruby object the actor is wrapping. This is useful for
only a limited set of use cases like runtime metaprogramming. Interacting
directly with the bare object foregoes any kind of thread safety that
Celluloid would ordinarily provide you, and the object is guaranteed to
be shared with at least the actor thread. Tread carefully.

Bare objects can be identified via #inspect output.


Obtain the bare Ruby object the actor is wrapping . This is useful for only a limited set of use cases like runtime metaprogramming . Interacting directly with the bare object foregoes any kind of thread safety that Celluloid would ordinarily provide you and the object is guaranteed to be shared with at least the actor thread . Tread carefully . Bare objects can be identified via #inspect output .
def inspect
      return "..." if Celluloid.detect_recursion
      str = "#<"
      if leaked?
        str << Celluloid::BARE_OBJECT_WARNING_MESSAGE
      else
        str << "Celluloid::ActorProxy"
      end
      str << "(#{self.class}:0x#{object_id.to_s(16)})"
      str << " " unless instance_variables.empty?
      instance_variables.each do |ivar|
        next if ivar == Celluloid::OWNER_IVAR
        str << "#{ivar}=#{instance_variable_get(ivar).inspect} "
      end
      str.sub!(/\s$/, '>')
    end
def inspect return "..." if Celluloid . detect_recursion str = "#<" if leaked? str << Celluloid :: BARE_OBJECT_WARNING_MESSAGE else str << "Celluloid::ActorProxy" end str << "(#{self.class}:0x#{object_id.to_s(16)})" str << " " unless instance_variables . empty? instance_variables . each do | ivar | next if ivar == Celluloid :: OWNER_IVAR str << "#{ivar}=#{instance_variable_get(ivar).inspect} " end str . sub! ( / \s $ / , '>' ) end
Obtain the bare Ruby object the actor is wrapping.
Obtain the bare Ruby object the actor is wrapping .