Module: ConvenientService::Utils Private

Defined in:
lib/convenient_service/utils.rb,
lib/convenient_service/utils/bool.rb,
lib/convenient_service/utils/hash.rb,
lib/convenient_service/utils/proc.rb,
lib/convenient_service/utils/array.rb,
lib/convenient_service/utils/class.rb,
lib/convenient_service/utils/kernel.rb,
lib/convenient_service/utils/method.rb,
lib/convenient_service/utils/module.rb,
lib/convenient_service/utils/object.rb,
lib/convenient_service/utils/string.rb,
lib/convenient_service/utils/array/wrap.rb,
lib/convenient_service/utils/array/merge.rb,
lib/convenient_service/utils/array/rjust.rb,
lib/convenient_service/utils/hash/except.rb,
lib/convenient_service/utils/method/name.rb,
lib/convenient_service/utils/bool/to_bool.rb,
lib/convenient_service/utils/proc/display.rb,
lib/convenient_service/utils/string/split.rb,
lib/convenient_service/utils/method/remove.rb,
lib/convenient_service/utils/proc/conjunct.rb,
lib/convenient_service/utils/method/defined.rb,
lib/convenient_service/utils/string/enclose.rb,
lib/convenient_service/utils/array/find_last.rb,
lib/convenient_service/utils/string/camelize.rb,
lib/convenient_service/utils/string/truncate.rb,
lib/convenient_service/utils/array/drop_while.rb,
lib/convenient_service/utils/array/exceptions.rb,
lib/convenient_service/utils/array/find_yield.rb,
lib/convenient_service/utils/array/keep_after.rb,
lib/convenient_service/utils/object/safe_send.rb,
lib/convenient_service/utils/proc/exec_config.rb,
lib/convenient_service/utils/module/exceptions.rb,
lib/convenient_service/utils/object/duck_class.rb,
lib/convenient_service/utils/string/demodulize.rb,
lib/convenient_service/utils/array/limited_push.rb,
lib/convenient_service/utils/class/display_name.rb,
lib/convenient_service/utils/method/name/append.rb,
lib/convenient_service/utils/object/clamp_class.rb,
lib/convenient_service/utils/object/resolve_type.rb,
lib/convenient_service/utils/module/get_namespace.rb,
lib/convenient_service/utils/module/get_own_const.rb,
lib/convenient_service/utils/array/contain_exactly.rb,
lib/convenient_service/utils/module/include_module.rb,
lib/convenient_service/utils/object/get_own_method.rb,
lib/convenient_service/utils/hash/assert_valid_keys.rb,
lib/convenient_service/utils/module/fetch_own_const.rb,
lib/convenient_service/utils/kernel/silence_warnings.rb,
lib/convenient_service/utils/class/get_attached_object.rb,
lib/convenient_service/utils/module/class_method_defined.rb,
lib/convenient_service/utils/object/with_one_time_object.rb,
lib/convenient_service/utils/hash/triple_equality_compare.rb,
lib/convenient_service/utils/module/get_own_instance_method.rb,
lib/convenient_service/utils/module/has_own_instance_method.rb,
lib/convenient_service/utils/module/instance_method_defined.rb,
lib/convenient_service/utils/object/instance_variable_fetch.rb,
lib/convenient_service/utils/object/instance_variable_delete.rb,
lib/convenient_service/utils/object/memoize_including_falsy_values.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.

Note:

Utilities from the Utils module are NOT expected to be used by the end-users directly.

Note:

Plugin developers usually can rely on the Utils module, but it is always a good idea to open an issue with the corresponding usage example. This way, the custom plugin may be added to the CI pipeline. So that any breaking change is caught before the new Convenient Service release.

Namespace for Convenient Service utilities that can be expressed as "functions".

Since:

  • 1.0.0

Defined Under Namespace

Modules: Array, Bool, Class, Hash, Kernel, Method, Module, Object, Proc, String

Class Method Summary collapse

Class Method Details

.memoize_including_falsy_valuesObject

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 Can be any type.

Returns:

  • (Object)

    Can be any type.

Since:

  • 1.0.0



33
34
35
# File 'lib/convenient_service/utils.rb', line 33

def memoize_including_falsy_values(...)
  Object::MemoizeIncludingFalsyValues.call(...)
end

.safe_sendObject

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 Can be any type.

Returns:

  • (Object)

    Can be any type.

Since:

  • 1.0.0



40
41
42
# File 'lib/convenient_service/utils.rb', line 40

def safe_send(...)
  Object::SafeSend.call(...)
end

.to_boolBoolean

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:

  • (Boolean)

Since:

  • 1.0.0



47
48
49
# File 'lib/convenient_service/utils.rb', line 47

def to_bool(...)
  Bool::ToBool.call(...)
end

.with_one_time_objectObject

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 Can be any type.

Returns:

  • (Object)

    Can be any type.

Since:

  • 1.0.0



54
55
56
# File 'lib/convenient_service/utils.rb', line 54

def with_one_time_object(...)
  Object::WithOneTimeObject.call(...)
end