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)



449
450
451
# File 'lib/ractor/wrapper.rb', line 449

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)



461
462
463
# File 'lib/ractor/wrapper.rb', line 461

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)



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

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)



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

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)



455
456
457
# File 'lib/ractor/wrapper.rb', line 455

def results
  @results
end