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>)


21
22
23
# File 'lib/convenient_service/common/plugins/can_be_copied/concern.rb', line 21

def to_args
  constructor_arguments.args
end

#to_argumentsConvenientService::Support::Arguments



42
43
44
# File 'lib/convenient_service/common/plugins/can_be_copied/concern.rb', line 42

def to_arguments
  constructor_arguments
end

#to_blockProc?

Returns:

  • (Proc, nil)


35
36
37
# File 'lib/convenient_service/common/plugins/can_be_copied/concern.rb', line 35

def to_block
  constructor_arguments.block
end

#to_kwargsHash{Symbol => Object}

Returns:

  • (Hash{Symbol => Object})


28
29
30
# File 'lib/convenient_service/common/plugins/can_be_copied/concern.rb', line 28

def to_kwargs
  constructor_arguments.kwargs
end