Module: Ramda::String

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

Overview

String functions

Class Method Summary collapse

Methods included from Internal::CurriedMethod

curried_method

Class Method Details

.type_error(object) ⇒ Object

TODO: Extract from this module

Raises:

  • (ArgumentError)


45
46
47
# File 'lib/ramda/string.rb', line 45

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