Class: Ractor::Wrapper::MethodSettings

Inherits:
Object
  • Object
show all
Defined in:
lib/ractor/wrapper.rb

Overview

Settings for a method call. Specifies how a method's arguments and return value are communicated (i.e. copy or move semantics.)

Instance Attribute Summary collapse

Instance Attribute Details

#arguments:copy, ... (readonly)

Returns:

  • (:copy, :move)

    How to communicate method arguments

  • (nil)

    if not set (will not happen in final settings)



468
469
470
# File 'lib/ractor/wrapper.rb', line 468

def arguments
  @arguments
end

#block_arguments:copy, ... (readonly)

Returns:

  • (:copy, :move)

    How to communicate arguments to a block

  • (nil)

    if not set (will not happen in final settings)



480
481
482
# File 'lib/ractor/wrapper.rb', line 480

def block_arguments
  @block_arguments
end

#block_environment:caller, ... (readonly)

Returns:

  • (:caller, :wrapped)

    What environment blocks execute in

  • (nil)

    if not set (will not happen in final settings)



492
493
494
# File 'lib/ractor/wrapper.rb', line 492

def block_environment
  @block_environment
end

#block_results:copy, ... (readonly)

Returns:

  • (:copy, :move, :void)

    How to communicate block results

  • (nil)

    if not set (will not happen in final settings)



486
487
488
# File 'lib/ractor/wrapper.rb', line 486

def block_results
  @block_results
end

#results:copy, ... (readonly)

Returns:

  • (:copy, :move, :void)

    How to communicate method return values

  • (nil)

    if not set (will not happen in final settings)



474
475
476
# File 'lib/ractor/wrapper.rb', line 474

def results
  @results
end