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
- 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)
- - (Boolean) all?
- - (Boolean) any?
- - (Object) collect
- - (Object) detect
- - (Object) each_with_index
- - (Object) entries
- - (Object) find
- - (Object) find_all
- - (Object) grep
- - (Object) inject
- - (Object) map
- - (Object) max
- - (Boolean) member?
- - (Object) min
- - (Object) partition
- - (Object) reject
- - (Object) select
- - (Object) sort
- - (Object) sort_by
- - (Object) zip
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) collect
9 10 |
# File 'lib/enumerable.rb', line 9 def collect end |
- (Object) detect
11 12 |
# File 'lib/enumerable.rb', line 11 def detect end |
- (Object) each_with_index
13 14 |
# File 'lib/enumerable.rb', line 13 def each_with_index end |
- (Object) entries
15 16 |
# File 'lib/enumerable.rb', line 15 def entries end |
- (Object) find
17 18 |
# File 'lib/enumerable.rb', line 17 def find end |
- (Object) find_all
19 20 |
# File 'lib/enumerable.rb', line 19 def find_all end |
- (Object) grep
21 22 |
# File 'lib/enumerable.rb', line 21 def grep end |
- (Object) inject
23 24 |
# File 'lib/enumerable.rb', line 23 def inject end |
- (Object) map
25 26 |
# File 'lib/enumerable.rb', line 25 def map end |
- (Object) max
27 28 |
# File 'lib/enumerable.rb', line 27 def max end |
- (Boolean) member?
29 30 |
# File 'lib/enumerable.rb', line 29 def member? end |
- (Object) min
31 32 |
# File 'lib/enumerable.rb', line 31 def min end |
- (Object) partition
33 34 |
# File 'lib/enumerable.rb', line 33 def partition end |
- (Object) reject
35 36 |
# File 'lib/enumerable.rb', line 35 def reject end |
- (Object) select
37 38 |
# File 'lib/enumerable.rb', line 37 def select end |
- (Object) sort
39 40 |
# File 'lib/enumerable.rb', line 39 def sort end |
- (Object) sort_by
41 42 |
# File 'lib/enumerable.rb', line 41 def sort_by end |
- (Object) zip
43 44 |
# File 'lib/enumerable.rb', line 43 def zip end |