Module: Enumerable

Included in:
Sketchup::AttributeDictionaries, Sketchup::AttributeDictionary, Sketchup::DefinitionList, Sketchup::Entities, Sketchup::Layers, Sketchup::Materials, Sketchup::OptionsManager, Sketchup::OptionsProvider, Sketchup::Pages, Sketchup::RenderingOptions, Sketchup::Selection, Sketchup::ShadowInfo, Sketchup::Styles, UI::Toolbar
Defined in:
lib/enumerable.rb

Overview

This appears to be a modified version of Ruby's Enumerable module.

Notably missing is the include? method, but member? can be used instead.

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) all?



5
6
# File 'lib/enumerable.rb', line 5

def all?
end

- (Boolean) any?



7
8
# File 'lib/enumerable.rb', line 7

def any?
end

- (Object) chunk

Since:

  • SketchUp 2014



11
12
# File 'lib/enumerable.rb', line 11

def chunk
end

- (Object) collect



14
15
# File 'lib/enumerable.rb', line 14

def collect
end

- (Object) collect_concat

Since:

  • SketchUp 2014



18
19
# File 'lib/enumerable.rb', line 18

def collect_concat
end

- (Object) count

Since:

  • SketchUp 2014



22
23
# File 'lib/enumerable.rb', line 22

def count
end

- (Object) cycle

Since:

  • SketchUp 2014



26
27
# File 'lib/enumerable.rb', line 26

def cycle
end

- (Object) detect



29
30
# File 'lib/enumerable.rb', line 29

def detect
end

- (Object) drop

Since:

  • SketchUp 2014



33
34
# File 'lib/enumerable.rb', line 33

def drop
end

- (Object) drop_while

Since:

  • SketchUp 2014



37
38
# File 'lib/enumerable.rb', line 37

def drop_while
end

- (Object) each_cons

Since:

  • SketchUp 2014



41
42
# File 'lib/enumerable.rb', line 41

def each_cons
end

- (Object) each_entry

Since:

  • SketchUp 2014



45
46
# File 'lib/enumerable.rb', line 45

def each_entry
end

- (Object) each_slice

Since:

  • SketchUp 2014



49
50
# File 'lib/enumerable.rb', line 49

def each_slice
end

- (Object) each_with_index



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

def each_with_index
end

- (Object) each_with_object

Since:

  • SketchUp 2014



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

def each_with_object
end

- (Object) entries



59
60
# File 'lib/enumerable.rb', line 59

def entries
end

- (Object) find



62
63
# File 'lib/enumerable.rb', line 62

def find
end

- (Object) find_all



65
66
# File 'lib/enumerable.rb', line 65

def find_all
end

- (Object) find_index

Since:

  • SketchUp 2014



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

def find_index
end

- (Object) first

Since:

  • SketchUp 2014



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

def first
end

- (Object) flat_map

Since:

  • SketchUp 2014



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

def flat_map
end

- (Object) grep



80
81
# File 'lib/enumerable.rb', line 80

def grep
end

- (Object) group_by

Since:

  • SketchUp 2014



84
85
# File 'lib/enumerable.rb', line 84

def group_by
end

- (Object) inject



87
88
# File 'lib/enumerable.rb', line 87

def inject
end

- (Object) lazy

Since:

  • SketchUp 2014



91
92
# File 'lib/enumerable.rb', line 91

def lazy
end

- (Object) map



94
95
# File 'lib/enumerable.rb', line 94

def map
end

- (Object) max



96
97
# File 'lib/enumerable.rb', line 96

def max
end

- (Object) max_by

Since:

  • SketchUp 2014



100
101
# File 'lib/enumerable.rb', line 100

def max_by
end

- (Boolean) member?



103
104
# File 'lib/enumerable.rb', line 103

def member?
end

- (Object) min



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

def min
end

- (Object) min_by

Since:

  • SketchUp 2014



109
110
# File 'lib/enumerable.rb', line 109

def min_by
end

- (Object) minmax

Since:

  • SketchUp 2014



113
114
# File 'lib/enumerable.rb', line 113

def minmax
end

- (Object) minmax_by

Since:

  • SketchUp 2014



117
118
# File 'lib/enumerable.rb', line 117

def minmax_by
end

- (Boolean) none?

Since:

  • SketchUp 2014



121
122
# File 'lib/enumerable.rb', line 121

def none?
end

- (Boolean) one?

Since:

  • SketchUp 2014



125
126
# File 'lib/enumerable.rb', line 125

def one?
end

- (Object) partition



128
129
# File 'lib/enumerable.rb', line 128

def partition
end

- (Object) reduce

Since:

  • SketchUp 2014



132
133
# File 'lib/enumerable.rb', line 132

def reduce
end

- (Object) reject



135
136
# File 'lib/enumerable.rb', line 135

def reject
end

- (Object) reverse_each

Since:

  • SketchUp 2014



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

def reverse_each
end

- (Object) select



142
143
# File 'lib/enumerable.rb', line 142

def select
end

- (Object) slice_before

Since:

  • SketchUp 2014



146
147
# File 'lib/enumerable.rb', line 146

def slice_before
end

- (Object) sort



149
150
# File 'lib/enumerable.rb', line 149

def sort
end

- (Object) sort_by



151
152
# File 'lib/enumerable.rb', line 151

def sort_by
end

- (Object) take

Since:

  • SketchUp 2014



155
156
# File 'lib/enumerable.rb', line 155

def take
end

- (Object) take_while

Since:

  • SketchUp 2014



159
160
# File 'lib/enumerable.rb', line 159

def take_while
end

- (Object) to_a

Since:

  • SketchUp 2014



163
164
# File 'lib/enumerable.rb', line 163

def to_a
end

- (Object) zip



166
167
# File 'lib/enumerable.rb', line 166

def zip
end