Module: Enumerable

Defined in:
lib/ruuuby/module/enumerable.rb

Overview

add various functions to existing module Enumerable

this module is included-in:

* +Array+
* +Set+
* +Hash+
* +Range+

Instance Method Summary collapse

Instance Method Details

#∀τ²∈λ𝑓₍ᵢ،ᵢ₊₁₎(&block) ⇒ Object

Parameters:

  • &block (Proc)

Raises:

  • (RuntimeError, ArgumentError)


18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/ruuuby/module/enumerable.rb', line 18

def 

#∌?(arg) ⇒ Boolean

Same meaning as: ‘arg.∉ self`

Parameters:

  • arg (*)

Returns:

  • (Boolean)

    true, if this Enumerable instance contains the provided arg



41
# File 'lib/ruuuby/module/enumerable.rb', line 41

def