Module: ConvenientService::Common::Plugins::CanBeCopied::Concern Private

Includes:
Support::Concern, Support::Copyable
Defined in:
lib/convenient_service/common/plugins/can_be_copied/concern.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 1.0.0

Instance Method Summary collapse

Methods included from Support::Copyable

#copy

Methods included from Support::Concern

included

Instance Method Details

#to_argsArray<Object>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Array<Object>)

Since:

  • 1.0.0



26
27
28
# File 'lib/convenient_service/common/plugins/can_be_copied/concern.rb', line 26

def to_args
  constructor_arguments.args
end

#to_argumentsConvenientService::Support::Arguments

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

Since:

  • 1.0.0



47
48
49
# File 'lib/convenient_service/common/plugins/can_be_copied/concern.rb', line 47

def to_arguments
  constructor_arguments
end

#to_blockProc?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Proc, nil)

Since:

  • 1.0.0



40
41
42
# File 'lib/convenient_service/common/plugins/can_be_copied/concern.rb', line 40

def to_block
  constructor_arguments.block
end

#to_kwargsHash{Symbol => Object}

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Hash{Symbol => Object})

Since:

  • 1.0.0



33
34
35
# File 'lib/convenient_service/common/plugins/can_be_copied/concern.rb', line 33

def to_kwargs
  constructor_arguments.kwargs
end