Module: Ramda::List

Extended by:
Internal::CurriedMethod, Internal::Dispatchable
Included in:
Ramda
Defined in:
lib/ramda/list.rb

Overview

List functions rubocop:disable Metrics/ModuleLength

Constant Summary collapse

Trans =
::Ramda::Internal::Transducers

Class Method Summary collapse

Methods included from Internal::CurriedMethod

curried, curried_method_body, debug_log, replace_placeholder

Methods included from Internal::Dispatchable

dispatchable, dispatchable1, dispatchable_error

Class Method Details

.type_error(object, method) ⇒ Object

TODO: Extract from this module

Raises:

  • (ArgumentError)


874
875
876
# File 'lib/ramda/list.rb', line 874

def self.type_error(object, method)
  raise ArgumentError, "Unexpected type #{object.class} in method: #{method}"
end