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

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

Instance Method Summary collapse

Methods included from Support::Copyable

#copy

Instance Method Details

#to_argsArray<Object>

Returns:

  • (Array<Object>)


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



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

def to_arguments
  constructor_arguments
end

#to_blockProc?

Returns:

  • (Proc, nil)


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}

Returns:

  • (Hash{Symbol => Object})


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

def to_kwargs
  constructor_arguments.kwargs
end