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

Transducer =
->(method) { ::Ramda::Internal::Transducers.method(method) }

Class Method Summary collapse

Methods included from Internal::CurriedMethod

curried, curried_method_body, debug_log, replace_placeholder

Methods included from Internal::Dispatchable

dispatchable

Class Method Details

.type_error(object, method) ⇒ Object

TODO: Extract from this module

Raises:

  • (ArgumentError)


700
701
702
# File 'lib/ramda/list.rb', line 700

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