Module: Ramda::List

Extended by:
Internal::CurriedMethod
Defined in:
lib/ramda/list.rb

Overview

List functions rubocop:disable Metrics/ModuleLength

Class Method Summary collapse

Methods included from Internal::CurriedMethod

curried_method

Class Method Details

.type_error(object, method) ⇒ Object

TODO: Extract from this module

Raises:

  • (ArgumentError)


368
369
370
# File 'lib/ramda/list.rb', line 368

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