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

- (Boolean) all?

builtin: true pure: true



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

def all?
end

- (Boolean) any?

builtin: true pure: true



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

def any?
end

- (Object) chunk(initial_state = nil)

builtin: true pure: true



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

def chunk(initial_state = nil)
end

- (Object) collect

builtin: true pure: true



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

def collect
end

- (Object) collect_concat

builtin: true pure: true



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

def collect_concat
end

- (Object) count(*args)

builtin: true pure: true



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

def count(*args)
end

- (Object) cycle(n = nil)

builtin: true pure: true



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

def cycle(n=nil)
end

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

builtin: true pure: true



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

def detect(ifnone=nil)
end

- (Object) drop(n)

builtin: true pure: true



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

def drop(n)
end

- (Object) drop_while

builtin: true pure: true



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

def drop_while
end

- (Object) each_cons(n)

builtin: true pure: true



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

def each_cons(n)
end

- (Object) each_entry

builtin: true pure: true



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

def each_entry
end

- (Object) each_slice(n)

builtin: true pure: true



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

def each_slice(n)
end

- (Object) each_with_index(*args)

builtin: true pure: true



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

def each_with_index(*args)
end

- (Object) each_with_object(obj)

builtin: true pure: true



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

def each_with_object(obj)
end

- (Object) entries

builtin: true pure: true



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

def entries
end

- (Object) find_index(*args)

builtin: true pure: true



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

def find_index(*args)
end

- (Object) first(n = nil)

builtin: true pure: true



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

def first(n=nil)
end

- (Object) flat_map

builtin: true pure: true



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

def flat_map
end

- (Object) grep(pattern)

builtin: true pure: true



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

def grep(pattern)
end

- (Object) group_by

builtin: true pure: true



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

def group_by
end

- (Boolean) include?(obj) Also known as: member?

builtin: true pure: true



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

def include?(obj)
end

- (Object) inject(*args) Also known as: reduce

builtin: true pure: true



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

def inject(*args)
end

- (Object) map

builtin: true pure: true



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

def map
end

- (Object) max

builtin: true pure: true



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

def max
end

- (Object) max_by

builtin: true pure: true



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

def max_by
end

- (Object) min

builtin: true pure: true



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

def min
end

- (Object) min_by

builtin: true pure: true



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

def min_by
end

- (Object) minmax

builtin: true pure: true



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

def minmax
end

- (Object) minmax_by

builtin: true pure: true



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

def minmax_by
end

- (Boolean) none?

builtin: true pure: true



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

def none?
end

- (Boolean) one?

builtin: true pure: true



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

def one?
end

- (Object) partition

builtin: true pure: true



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

def partition
end

- (Object) reject

builtin: true pure: true



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

def reject
end

- (Object) reverse_each(*args)

builtin: true pure: true



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

def reverse_each(*args)
end

- (Object) select Also known as: find_all

builtin: true pure: true



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

def select()
end

- (Object) slice_before(first_arg = nil)

builtin: true pure: true



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

def slice_before(first_arg=nil)
end

- (Object) sort

builtin: true pure: true



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

def sort
end

- (Object) sort_by

builtin: true pure: true



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

def sort_by
end

- (Object) take(n)

builtin: true pure: true



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

def take(n)
end

- (Object) take_while

builtin: true pure: true



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

def take_while
end

- (Object) to_a

builtin: true pure: true



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

def to_a
end

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

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

- (Object) zip(ary, *arys)

builtin: true pure: true



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

def zip(ary, *arys)
end