Module: Enumerable

Included in:
RGL::ControlFlowGraph, RGL::Graph, Set
Defined in:
lib/laser/standard_library/set.rb,
lib/laser/standard_library/enumerable.rb

Instance Method Summary collapse

Instance Method Details

#all?Boolean

builtin: true pure: true



4
5
# File 'lib/laser/standard_library/enumerable.rb', line 4

def all?
end

#any?Boolean

builtin: true pure: true



8
9
# File 'lib/laser/standard_library/enumerable.rb', line 8

def any?
end

#chunk(initial_state = nil) ⇒ Object

builtin: true pure: true



12
13
# File 'lib/laser/standard_library/enumerable.rb', line 12

def chunk(initial_state = nil)
end

#collectObject

builtin: true pure: true



16
17
# File 'lib/laser/standard_library/enumerable.rb', line 16

def collect
end

#collect_concatObject

builtin: true pure: true



20
21
# File 'lib/laser/standard_library/enumerable.rb', line 20

def collect_concat
end

#count(*args) ⇒ Object

builtin: true pure: true



24
25
# File 'lib/laser/standard_library/enumerable.rb', line 24

def count(*args)
end

#cycle(n = nil) ⇒ Object

builtin: true pure: true



28
29
# File 'lib/laser/standard_library/enumerable.rb', line 28

def cycle(n=nil)
end

#detect(ifnone = nil) ⇒ Object Also known as: find

builtin: true pure: true



32
33
# File 'lib/laser/standard_library/enumerable.rb', line 32

def detect(ifnone=nil)
end

#drop(n) ⇒ Object

builtin: true pure: true



36
37
# File 'lib/laser/standard_library/enumerable.rb', line 36

def drop(n)
end

#drop_whileObject

builtin: true pure: true



40
41
# File 'lib/laser/standard_library/enumerable.rb', line 40

def drop_while
end

#each_cons(n) ⇒ Object

builtin: true pure: true



44
45
# File 'lib/laser/standard_library/enumerable.rb', line 44

def each_cons(n)
end

#each_entryObject

builtin: true pure: true



48
49
# File 'lib/laser/standard_library/enumerable.rb', line 48

def each_entry
end

#each_slice(n) ⇒ Object

builtin: true pure: true



52
53
# File 'lib/laser/standard_library/enumerable.rb', line 52

def each_slice(n)
end

#each_with_index(*args) ⇒ Object

builtin: true pure: true



56
57
# File 'lib/laser/standard_library/enumerable.rb', line 56

def each_with_index(*args)
end

#each_with_object(obj) ⇒ Object

builtin: true pure: true



60
61
# File 'lib/laser/standard_library/enumerable.rb', line 60

def each_with_object(obj)
end

#entriesObject

builtin: true pure: true



64
65
# File 'lib/laser/standard_library/enumerable.rb', line 64

def entries
end

#find_index(*args) ⇒ Object

builtin: true pure: true



69
70
# File 'lib/laser/standard_library/enumerable.rb', line 69

def find_index(*args)
end

#first(n = nil) ⇒ Object

builtin: true pure: true



73
74
# File 'lib/laser/standard_library/enumerable.rb', line 73

def first(n=nil)
end

#flat_mapObject

builtin: true pure: true



77
78
# File 'lib/laser/standard_library/enumerable.rb', line 77

def flat_map
end

#grep(pattern) ⇒ Object

builtin: true pure: true



81
82
# File 'lib/laser/standard_library/enumerable.rb', line 81

def grep(pattern)
end

#group_byObject

builtin: true pure: true



85
86
# File 'lib/laser/standard_library/enumerable.rb', line 85

def group_by
end

#include?(obj) ⇒ Boolean Also known as: member?

builtin: true pure: true



89
90
# File 'lib/laser/standard_library/enumerable.rb', line 89

def include?(obj)
end

#inject(*args) ⇒ Object Also known as: reduce

builtin: true pure: true



93
94
# File 'lib/laser/standard_library/enumerable.rb', line 93

def inject(*args)
end

#mapObject

builtin: true pure: true



97
98
# File 'lib/laser/standard_library/enumerable.rb', line 97

def map
end

#maxObject

builtin: true pure: true



101
102
# File 'lib/laser/standard_library/enumerable.rb', line 101

def max
end

#max_byObject

builtin: true pure: true



105
106
# File 'lib/laser/standard_library/enumerable.rb', line 105

def max_by
end

#minObject

builtin: true pure: true



110
111
# File 'lib/laser/standard_library/enumerable.rb', line 110

def min
end

#min_byObject

builtin: true pure: true



114
115
# File 'lib/laser/standard_library/enumerable.rb', line 114

def min_by
end

#minmaxObject

builtin: true pure: true



118
119
# File 'lib/laser/standard_library/enumerable.rb', line 118

def minmax
end

#minmax_byObject

builtin: true pure: true



122
123
# File 'lib/laser/standard_library/enumerable.rb', line 122

def minmax_by
end

#none?Boolean

builtin: true pure: true



126
127
# File 'lib/laser/standard_library/enumerable.rb', line 126

def none?
end

#one?Boolean

builtin: true pure: true



130
131
# File 'lib/laser/standard_library/enumerable.rb', line 130

def one?
end

#partitionObject

builtin: true pure: true



134
135
# File 'lib/laser/standard_library/enumerable.rb', line 134

def partition
end

#rejectObject

builtin: true pure: true



139
140
# File 'lib/laser/standard_library/enumerable.rb', line 139

def reject
end

#reverse_each(*args) ⇒ Object

builtin: true pure: true



143
144
# File 'lib/laser/standard_library/enumerable.rb', line 143

def reverse_each(*args)
end

#selectObject Also known as: find_all

builtin: true pure: true



147
148
# File 'lib/laser/standard_library/enumerable.rb', line 147

def select()
end

#slice_before(first_arg = nil) ⇒ Object

builtin: true pure: true



152
153
# File 'lib/laser/standard_library/enumerable.rb', line 152

def slice_before(first_arg=nil)
end

#sortObject

builtin: true pure: true



156
157
# File 'lib/laser/standard_library/enumerable.rb', line 156

def sort
end

#sort_byObject

builtin: true pure: true



160
161
# File 'lib/laser/standard_library/enumerable.rb', line 160

def sort_by
end

#take(n) ⇒ Object

builtin: true pure: true



164
165
# File 'lib/laser/standard_library/enumerable.rb', line 164

def take(n)
end

#take_whileObject

builtin: true pure: true



168
169
# File 'lib/laser/standard_library/enumerable.rb', line 168

def take_while
end

#to_aObject

builtin: true pure: true



172
173
# File 'lib/laser/standard_library/enumerable.rb', line 172

def to_a
end

#to_set(klass = Set, *args, &block) ⇒ Object

Makes a set from the enumerable object with given arguments. Needs to require “set” to use this method.



621
622
623
# File 'lib/laser/standard_library/set.rb', line 621

def to_set(klass = Set, *args, &block)
  klass.new(self, *args, &block)
end

#zip(ary, *arys) ⇒ Object

builtin: true pure: true



176
177
# File 'lib/laser/standard_library/enumerable.rb', line 176

def zip(ary, *arys)
end