facets 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/core/facets/array/delete.rb +1 -45
- data/lib/core/facets/array/indexable.rb +0 -142
- data/lib/core/facets/array/merge.rb +0 -50
- data/lib/core/facets/array/rotate.rb +6 -37
- data/lib/core/facets/array/select.rb +0 -26
- data/lib/core/facets/array/unzip.rb +6 -7
- data/lib/methods/facets/filetest/root.rb +1 -1
- data/meta/manifest.txt +0 -67
- data/meta/version.txt +1 -1
- data/task/methods +6 -3
- data/test/unit/array/test_delete.rb +33 -40
- data/test/unit/array/test_indexable.rb +118 -128
- data/test/unit/array/test_rotate.rb +22 -30
- data/test/unit/array/test_select.rb +14 -25
- metadata +2 -69
- data/lib/methods/facets/array/conjoin.rb +0 -1
- data/lib/methods/facets/array/merge.rb +0 -1
- data/lib/methods/facets/array/pad.rb +0 -1
- data/lib/methods/facets/array/rotate.rb +0 -1
- data/lib/methods/facets/array/select.rb +0 -1
- data/lib/methods/facets/array/splice.rb +0 -1
- data/lib/methods/facets/array/unzip.rb +0 -1
- data/lib/methods/facets/binding/eval.rb +0 -1
- data/lib/methods/facets/class/descendents.rb +0 -1
- data/lib/methods/facets/class/initializer.rb +0 -1
- data/lib/methods/facets/comparable/bound.rb +0 -1
- data/lib/methods/facets/comparable/cmp.rb +0 -1
- data/lib/methods/facets/dir/multiglob.rb +0 -1
- data/lib/methods/facets/enumerable/collate.rb +0 -1
- data/lib/methods/facets/enumerable/collect_with_counter.rb +0 -1
- data/lib/methods/facets/enumerable/count.rb +0 -1
- data/lib/methods/facets/enumerable/each_with_counter.rb +0 -1
- data/lib/methods/facets/enumerable/map_with_counter.rb +0 -1
- data/lib/methods/facets/enumerable/permutation.rb +0 -1
- data/lib/methods/facets/enumerable/probability.rb +0 -1
- data/lib/methods/facets/file/write.rb +0 -1
- data/lib/methods/facets/hash/at.rb +0 -1
- data/lib/methods/facets/hash/has_keys.rb +0 -1
- data/lib/methods/facets/hash/insert.rb +0 -1
- data/lib/methods/facets/hash/inverse.rb +0 -1
- data/lib/methods/facets/hash/rekey.rb +0 -1
- data/lib/methods/facets/hash/traverse.rb +0 -1
- data/lib/methods/facets/hash/weave.rb +0 -1
- data/lib/methods/facets/integer/bitmask.rb +0 -1
- data/lib/methods/facets/integer/factorial.rb +0 -1
- data/lib/methods/facets/integer/of.rb +0 -1
- data/lib/methods/facets/kernel/ask.rb +0 -1
- data/lib/methods/facets/kernel/constant.rb +0 -1
- data/lib/methods/facets/kernel/op_esc.rb +0 -1
- data/lib/methods/facets/kernel/populate.rb +0 -1
- data/lib/methods/facets/kernel/require_esc.rb +0 -1
- data/lib/methods/facets/kernel/respond.rb +0 -1
- data/lib/methods/facets/kernel/tap.rb +0 -1
- data/lib/methods/facets/kernel/val.rb +0 -1
- data/lib/methods/facets/matchdata/matchset.rb +0 -1
- data/lib/methods/facets/module/abstract.rb +0 -1
- data/lib/methods/facets/nilclass/ergo.rb +0 -1
- data/lib/methods/facets/nilclass/status.rb +0 -1
- data/lib/methods/facets/proc/bind.rb +0 -1
- data/lib/methods/facets/proc/compose.rb +0 -1
- data/lib/methods/facets/range/combine.rb +0 -1
- data/lib/methods/facets/range/overlap.rb +0 -1
- data/lib/methods/facets/regexp/arity.rb +0 -1
- data/lib/methods/facets/string/blank.rb +0 -1
- data/lib/methods/facets/string/bracket.rb +0 -1
- data/lib/methods/facets/string/crypt.rb +0 -1
- data/lib/methods/facets/string/interpolate.rb +0 -1
- data/lib/methods/facets/string/natcmp.rb +0 -1
- data/lib/methods/facets/string/nchar.rb +0 -1
- data/lib/methods/facets/string/range.rb +0 -1
- data/lib/methods/facets/string/regesc.rb +0 -1
- data/lib/methods/facets/string/splice.rb +0 -1
- data/lib/methods/facets/symbol/chomp.rb +0 -1
- data/lib/methods/facets/symbol/generate.rb +0 -1
- data/lib/methods/facets/symbol/not.rb +0 -1
- data/lib/methods/facets/symbol/shadow.rb +0 -1
- data/lib/methods/facets/symbol/succ.rb +0 -1
- data/lib/methods/facets/time/change.rb +0 -1
- data/lib/methods/facets/time/elapse.rb +0 -1
- data/lib/methods/facets/unboundmethod/arguments.rb +0 -1
- data/lib/methods/facets/unboundmethod/name.rb +0 -1
@@ -1,14 +1,9 @@
|
|
1
|
-
# = Array Deletion Extensions
|
2
|
-
#
|
3
|
-
# General array deletion extensions.
|
4
|
-
|
5
|
-
#
|
6
1
|
class Array
|
7
2
|
|
8
3
|
# CREDIT Daniel Schierbeck
|
9
4
|
|
10
5
|
# Inverse of #delete_if.
|
11
|
-
|
6
|
+
|
12
7
|
def delete_unless(&block)
|
13
8
|
delete_if { |element| not block.call(element) }
|
14
9
|
end
|
@@ -54,42 +49,3 @@ class Array
|
|
54
49
|
end
|
55
50
|
|
56
51
|
end
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
# _____ _
|
61
|
-
# |_ _|__ ___| |_
|
62
|
-
# | |/ _ \/ __| __|
|
63
|
-
# | | __/\__ \ |_
|
64
|
-
# |_|\___||___/\__|
|
65
|
-
#
|
66
|
-
=begin test
|
67
|
-
|
68
|
-
require 'test/unit'
|
69
|
-
|
70
|
-
class TestArray < Test::Unit::TestCase
|
71
|
-
|
72
|
-
def test_delete_unless
|
73
|
-
a = [1,2,3]
|
74
|
-
a.delete_unless{ |e| e == 2 }
|
75
|
-
assert_equal( [2], a )
|
76
|
-
end
|
77
|
-
|
78
|
-
def test_delete_values
|
79
|
-
a = [1,2,3,4]
|
80
|
-
assert_equal( [1,2], a.delete_values(1,2) )
|
81
|
-
assert_equal( [3,4], a )
|
82
|
-
end
|
83
|
-
|
84
|
-
def test_delete_values_at
|
85
|
-
a = [1,2,3,4]
|
86
|
-
assert_equal( [2,3], a.delete_values_at(1,2) )
|
87
|
-
assert_equal( [1,4], a )
|
88
|
-
a = [1,2,3,4]
|
89
|
-
assert_equal( [1,2,3], a.delete_values_at(0..2) )
|
90
|
-
assert_equal( [4], a )
|
91
|
-
end
|
92
|
-
|
93
|
-
end
|
94
|
-
|
95
|
-
=end
|
@@ -1,15 +1,3 @@
|
|
1
|
-
# TITLE:
|
2
|
-
#
|
3
|
-
# Array Indexable
|
4
|
-
#
|
5
|
-
# DESCRIPTION:
|
6
|
-
#
|
7
|
-
# Includes the Indexable mixin into Array.
|
8
|
-
#
|
9
|
-
# AUTHORS:
|
10
|
-
#
|
11
|
-
# CREDIT Thomas Sawyer
|
12
|
-
|
13
1
|
require 'facets/indexable'
|
14
2
|
require 'facets/array/splice'
|
15
3
|
|
@@ -74,133 +62,3 @@ class Array
|
|
74
62
|
end
|
75
63
|
end
|
76
64
|
=end
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
# _____ _
|
81
|
-
# |_ _|__ ___| |_
|
82
|
-
# | |/ _ \/ __| __|
|
83
|
-
# | | __/\__ \ |_
|
84
|
-
# |_|\___||___/\__|
|
85
|
-
#
|
86
|
-
=begin test
|
87
|
-
|
88
|
-
require 'test/unit'
|
89
|
-
|
90
|
-
class TestArray < Test::Unit::TestCase
|
91
|
-
|
92
|
-
def test_head
|
93
|
-
a = [1,2,3,4,5]
|
94
|
-
assert_equal( [1], a.head )
|
95
|
-
end
|
96
|
-
|
97
|
-
def test_tail
|
98
|
-
a = [1,2,3,4,5]
|
99
|
-
assert_equal( [2,3,4,5], a.tail )
|
100
|
-
end
|
101
|
-
|
102
|
-
def test_foot
|
103
|
-
a = [1,2,3,4,5]
|
104
|
-
assert_equal( [5], a.foot )
|
105
|
-
end
|
106
|
-
|
107
|
-
def test_body
|
108
|
-
a = [1,2,3,4,5]
|
109
|
-
assert_equal( [1,2,3,4], a.body )
|
110
|
-
end
|
111
|
-
|
112
|
-
def test_mid
|
113
|
-
a = [1,2,3,4,5]
|
114
|
-
b = [1,2,3,4,5,6]
|
115
|
-
assert_equal( 3, a.mid )
|
116
|
-
assert_equal( 4, b.mid )
|
117
|
-
assert_equal( 4, a.mid(1) )
|
118
|
-
assert_equal( 5, b.mid(1) )
|
119
|
-
assert_equal( 6, b.mid(2) )
|
120
|
-
assert_equal( 3, b.mid(-1) )
|
121
|
-
end
|
122
|
-
|
123
|
-
def test_middle
|
124
|
-
a = [1,2,3,4,5]
|
125
|
-
b = [1,2,3,4,5,6]
|
126
|
-
assert_equal( 3, a.middle )
|
127
|
-
assert_equal( [3,4], b.middle )
|
128
|
-
end
|
129
|
-
|
130
|
-
#def test_op_mod
|
131
|
-
# a = [:A,:B,:C]
|
132
|
-
# assert_equal( a[1], a/1 )
|
133
|
-
# assert_equal( :B, a/1 )
|
134
|
-
#end
|
135
|
-
#
|
136
|
-
#def test_op_div
|
137
|
-
# a = [:A,:B,:C]
|
138
|
-
# assert_equal( a[1], a/1 )
|
139
|
-
# assert_equal( :B, a/1 )
|
140
|
-
#end
|
141
|
-
|
142
|
-
#def test_op_fetch
|
143
|
-
# a = ['a','b','c','d','e','f']
|
144
|
-
# assert_equal( ['b','f'], a[[1,-1]] )
|
145
|
-
#end
|
146
|
-
#
|
147
|
-
#def test_op_store
|
148
|
-
# a = ['a','o','z']
|
149
|
-
# a[[0,2]] = ['A','Z']
|
150
|
-
# assert_equal( ['A','o','Z'], a )
|
151
|
-
# a[[0,-1]] = ['W','Y']
|
152
|
-
# assert_equal( ['W','o','Y'], a )
|
153
|
-
#end
|
154
|
-
|
155
|
-
def test_thru
|
156
|
-
assert_equal( [2,3,4], [0,1,2,3,4,5].thru(2,4) )
|
157
|
-
assert_equal( [0,1], [0,1,2,3,4,5].thru(0,1) )
|
158
|
-
end
|
159
|
-
|
160
|
-
def test_first_eq
|
161
|
-
a = [1,2]
|
162
|
-
a.first = 0
|
163
|
-
assert_equal( [0,2], a )
|
164
|
-
end
|
165
|
-
|
166
|
-
def test_last_eq
|
167
|
-
a = [1,2]
|
168
|
-
a.last = 3
|
169
|
-
assert_equal( [1,3], a )
|
170
|
-
end
|
171
|
-
|
172
|
-
def test_ends
|
173
|
-
assert_equal( [1,2,3,4,5].ends, 4 )
|
174
|
-
end
|
175
|
-
|
176
|
-
def test_pos
|
177
|
-
a = [1,2,3,4,5]
|
178
|
-
assert_equal( 0, a.pos(1) )
|
179
|
-
assert_equal( 4, a.pos(-1) )
|
180
|
-
end
|
181
|
-
|
182
|
-
def test_range
|
183
|
-
a = [1,2,3,4,5]
|
184
|
-
b = [1,2,3,4,5,6]
|
185
|
-
assert_equal( (0..4), a.range )
|
186
|
-
assert_equal( (0..5), b.range )
|
187
|
-
assert_equal( (1..3), a.range(2,4) )
|
188
|
-
assert_equal( (1..2), b.range(2,3) )
|
189
|
-
assert_equal( (3..1), b.range(4,2) )
|
190
|
-
end
|
191
|
-
|
192
|
-
def test_first!
|
193
|
-
a = [1,2,3]
|
194
|
-
assert_equal( 1, a.first! )
|
195
|
-
assert_equal( [2,3], a )
|
196
|
-
end
|
197
|
-
|
198
|
-
def test_last!
|
199
|
-
a = [1,2,3]
|
200
|
-
assert_equal( 3, a.last! )
|
201
|
-
assert_equal( [1,2], a )
|
202
|
-
end
|
203
|
-
|
204
|
-
end
|
205
|
-
|
206
|
-
=end
|
@@ -1,8 +1,3 @@
|
|
1
|
-
# = Array Manipulation Extensions
|
2
|
-
#
|
3
|
-
# General array manipulation extensions.
|
4
|
-
|
5
|
-
#
|
6
1
|
class Array
|
7
2
|
|
8
3
|
# Alias for <tt>|</tt>.
|
@@ -15,48 +10,3 @@ class Array
|
|
15
10
|
end
|
16
11
|
|
17
12
|
end
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
# _____ _
|
22
|
-
# |_ _|__ ___| |_
|
23
|
-
# | |/ _ \/ __| __|
|
24
|
-
# | | __/\__ \ |_
|
25
|
-
# |_|\___||___/\__|
|
26
|
-
#
|
27
|
-
=begin test
|
28
|
-
|
29
|
-
require 'test/unit'
|
30
|
-
|
31
|
-
class TestArray < Test::Unit::TestCase
|
32
|
-
|
33
|
-
def test_merge
|
34
|
-
a = [1,2,3]
|
35
|
-
b = [3,4,5]
|
36
|
-
assert_equal( [1,2,3,4,5], a.merge(b) )
|
37
|
-
end
|
38
|
-
|
39
|
-
def test_merge!
|
40
|
-
a = [1,2,3]
|
41
|
-
b = [3,4,5]
|
42
|
-
a.merge!(b)
|
43
|
-
assert_equal( [1,2,3,4,5], a )
|
44
|
-
end
|
45
|
-
|
46
|
-
def test_rotate
|
47
|
-
a = [1,2,3]
|
48
|
-
assert_equal( [3,1,2], a.rotate, 'clockwise' )
|
49
|
-
assert_equal( [2,3,1], a.rotate(-1), 'counter-clockwise' )
|
50
|
-
end
|
51
|
-
|
52
|
-
def test_rotate!
|
53
|
-
a = [1,2,3]
|
54
|
-
a.rotate!
|
55
|
-
assert_equal( [3,1,2], a, 'clockwise' )
|
56
|
-
a.rotate!(-1)
|
57
|
-
assert_equal( [1,2,3], a, 'counter-clockwise' )
|
58
|
-
end
|
59
|
-
|
60
|
-
end
|
61
|
-
|
62
|
-
=end
|
@@ -1,7 +1,3 @@
|
|
1
|
-
# CREDIT Florian Gross
|
2
|
-
# CREDIT Thomas Sawyer
|
3
|
-
|
4
|
-
#
|
5
1
|
class Array
|
6
2
|
|
7
3
|
# Rotates an array's elements from back to front n times.
|
@@ -15,6 +11,9 @@ class Array
|
|
15
11
|
#
|
16
12
|
# [1,2,3].rotate(-1) #=> [2,3,1]
|
17
13
|
#
|
14
|
+
# CREDIT Florian Gross
|
15
|
+
# CREDIT Thomas Sawyer
|
16
|
+
|
18
17
|
def rotate(n=1)
|
19
18
|
self.dup.rotate!(n)
|
20
19
|
end
|
@@ -25,6 +24,9 @@ class Array
|
|
25
24
|
# a.rotate!
|
26
25
|
# a #=> [3,1,2]
|
27
26
|
#
|
27
|
+
# CREDIT Florian Gross
|
28
|
+
# CREDIT Thomas Sawyer
|
29
|
+
|
28
30
|
def rotate!(n=1)
|
29
31
|
n = n.to_int
|
30
32
|
return self if (n == 0 or self.empty?)
|
@@ -37,36 +39,3 @@ class Array
|
|
37
39
|
end
|
38
40
|
|
39
41
|
end
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
# _____ _
|
44
|
-
# |_ _|__ ___| |_
|
45
|
-
# | |/ _ \/ __| __|
|
46
|
-
# | | __/\__ \ |_
|
47
|
-
# |_|\___||___/\__|
|
48
|
-
#
|
49
|
-
=begin test
|
50
|
-
|
51
|
-
require 'test/unit'
|
52
|
-
require 'set'
|
53
|
-
|
54
|
-
class TestArrayRotate < Test::Unit::TestCase
|
55
|
-
|
56
|
-
def test_rotate
|
57
|
-
a = [1,2,3]
|
58
|
-
assert_equal( [3,1,2], a.rotate, 'clockwise' )
|
59
|
-
assert_equal( [2,3,1], a.rotate(-1), 'counter-clockwise' )
|
60
|
-
end
|
61
|
-
|
62
|
-
def test_rotate!
|
63
|
-
a = [1,2,3]
|
64
|
-
a.rotate!
|
65
|
-
assert_equal( [3,1,2], a, 'clockwise' )
|
66
|
-
a.rotate!(-1)
|
67
|
-
assert_equal( [1,2,3], a, 'counter-clockwise' )
|
68
|
-
end
|
69
|
-
|
70
|
-
end
|
71
|
-
|
72
|
-
=end
|
@@ -1,4 +1,3 @@
|
|
1
|
-
#
|
2
1
|
class Array
|
3
2
|
|
4
3
|
# As with #select but modifies the Array in place.
|
@@ -12,28 +11,3 @@ class Array
|
|
12
11
|
end
|
13
12
|
|
14
13
|
end
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
# _____ _
|
19
|
-
# |_ _|__ ___| |_
|
20
|
-
# | |/ _ \/ __| __|
|
21
|
-
# | | __/\__ \ |_
|
22
|
-
# |_|\___||___/\__|
|
23
|
-
#
|
24
|
-
=begin test
|
25
|
-
|
26
|
-
require 'test/unit'
|
27
|
-
require 'set'
|
28
|
-
|
29
|
-
class TestArray < Test::Unit::TestCase
|
30
|
-
|
31
|
-
def test_select!
|
32
|
-
a = [1,2,3,4,5,6,7,8,9,10]
|
33
|
-
a.select!{ |e| e % 2 == 0 }
|
34
|
-
assert_equal( [2,4,6,8,10], a)
|
35
|
-
end
|
36
|
-
|
37
|
-
end
|
38
|
-
|
39
|
-
=end
|
@@ -1,15 +1,14 @@
|
|
1
1
|
class Array
|
2
2
|
|
3
3
|
# Unzip array.
|
4
|
-
|
5
|
-
# TODO chek module
|
4
|
+
|
6
5
|
def unzip(level)
|
7
6
|
raise ArgumentError, 'bad modulo' if size % level != 0
|
8
|
-
|
9
|
-
(0...size).each
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
r = Array.new(level, [])
|
8
|
+
(0...size).each do |i|
|
9
|
+
r[i % level] += [self[i]]
|
10
|
+
end
|
11
|
+
r
|
13
12
|
end
|
14
13
|
|
15
14
|
end
|
@@ -1 +1 @@
|
|
1
|
-
require 'facets/
|
1
|
+
require 'facets/file/topath.rb'
|
data/meta/manifest.txt
CHANGED
@@ -194,25 +194,18 @@ lib/core/facets.rb
|
|
194
194
|
lib/methods
|
195
195
|
lib/methods/facets
|
196
196
|
lib/methods/facets/array
|
197
|
-
lib/methods/facets/array/conjoin.rb
|
198
197
|
lib/methods/facets/array/delete_unless.rb
|
199
198
|
lib/methods/facets/array/delete_values.rb
|
200
199
|
lib/methods/facets/array/delete_values_at.rb
|
201
200
|
lib/methods/facets/array/first.rb
|
202
201
|
lib/methods/facets/array/join_sentence.rb
|
203
202
|
lib/methods/facets/array/last.rb
|
204
|
-
lib/methods/facets/array/merge.rb
|
205
|
-
lib/methods/facets/array/pad.rb
|
206
203
|
lib/methods/facets/array/poke.rb
|
207
204
|
lib/methods/facets/array/pull.rb
|
208
|
-
lib/methods/facets/array/rotate.rb
|
209
|
-
lib/methods/facets/array/select.rb
|
210
|
-
lib/methods/facets/array/splice.rb
|
211
205
|
lib/methods/facets/array/store.rb
|
212
206
|
lib/methods/facets/array/to_b.rb
|
213
207
|
lib/methods/facets/array/to_h.rb
|
214
208
|
lib/methods/facets/array/to_path.rb
|
215
|
-
lib/methods/facets/array/unzip.rb
|
216
209
|
lib/methods/facets/binding
|
217
210
|
lib/methods/facets/binding/__DIR__.rb
|
218
211
|
lib/methods/facets/binding/__FILE__.rb
|
@@ -221,7 +214,6 @@ lib/methods/facets/binding/call_stack.rb
|
|
221
214
|
lib/methods/facets/binding/called.rb
|
222
215
|
lib/methods/facets/binding/caller.rb
|
223
216
|
lib/methods/facets/binding/defined.rb
|
224
|
-
lib/methods/facets/binding/eval.rb
|
225
217
|
lib/methods/facets/binding/included.rb
|
226
218
|
lib/methods/facets/binding/local_variables.rb
|
227
219
|
lib/methods/facets/binding/methodname.rb
|
@@ -234,8 +226,6 @@ lib/methods/facets/class/cattr_reader.rb
|
|
234
226
|
lib/methods/facets/class/cattr_writer.rb
|
235
227
|
lib/methods/facets/class/class_load.rb
|
236
228
|
lib/methods/facets/class/class_require.rb
|
237
|
-
lib/methods/facets/class/descendents.rb
|
238
|
-
lib/methods/facets/class/initializer.rb
|
239
229
|
lib/methods/facets/class/mattr.rb
|
240
230
|
lib/methods/facets/class/mattr_accessor.rb
|
241
231
|
lib/methods/facets/class/mattr_reader.rb
|
@@ -247,16 +237,13 @@ lib/methods/facets/class/to_proc.rb
|
|
247
237
|
lib/methods/facets/comparable
|
248
238
|
lib/methods/facets/comparable/at_least.rb
|
249
239
|
lib/methods/facets/comparable/at_most.rb
|
250
|
-
lib/methods/facets/comparable/bound.rb
|
251
240
|
lib/methods/facets/comparable/cap.rb
|
252
241
|
lib/methods/facets/comparable/clip.rb
|
253
|
-
lib/methods/facets/comparable/cmp.rb
|
254
242
|
lib/methods/facets/dir
|
255
243
|
lib/methods/facets/dir/ancestor.rb
|
256
244
|
lib/methods/facets/dir/ascend.rb
|
257
245
|
lib/methods/facets/dir/descend.rb
|
258
246
|
lib/methods/facets/dir/ls_r.rb
|
259
|
-
lib/methods/facets/dir/multiglob.rb
|
260
247
|
lib/methods/facets/dir/multiglob_r.rb
|
261
248
|
lib/methods/facets/dir/multiglob_with_default.rb
|
262
249
|
lib/methods/facets/dir/parent.rb
|
@@ -265,16 +252,13 @@ lib/methods/facets/enumerable
|
|
265
252
|
lib/methods/facets/enumerable/cart.rb
|
266
253
|
lib/methods/facets/enumerable/cartesian_product.rb
|
267
254
|
lib/methods/facets/enumerable/cluster_by.rb
|
268
|
-
lib/methods/facets/enumerable/collate.rb
|
269
255
|
lib/methods/facets/enumerable/collect_if.rb
|
270
|
-
lib/methods/facets/enumerable/collect_with_counter.rb
|
271
256
|
lib/methods/facets/enumerable/collect_with_index.rb
|
272
257
|
lib/methods/facets/enumerable/combinations.rb
|
273
258
|
lib/methods/facets/enumerable/combos.rb
|
274
259
|
lib/methods/facets/enumerable/commonality.rb
|
275
260
|
lib/methods/facets/enumerable/compact_collect.rb
|
276
261
|
lib/methods/facets/enumerable/compact_map.rb
|
277
|
-
lib/methods/facets/enumerable/count.rb
|
278
262
|
lib/methods/facets/enumerable/divide.rb
|
279
263
|
lib/methods/facets/enumerable/duplicates.rb
|
280
264
|
lib/methods/facets/enumerable/each_by.rb
|
@@ -283,7 +267,6 @@ lib/methods/facets/enumerable/each_combo.rb
|
|
283
267
|
lib/methods/facets/enumerable/each_pair.rb
|
284
268
|
lib/methods/facets/enumerable/each_permutation.rb
|
285
269
|
lib/methods/facets/enumerable/each_unique_pair.rb
|
286
|
-
lib/methods/facets/enumerable/each_with_counter.rb
|
287
270
|
lib/methods/facets/enumerable/eachn.rb
|
288
271
|
lib/methods/facets/enumerable/entropy.rb
|
289
272
|
lib/methods/facets/enumerable/filter_collect.rb
|
@@ -294,7 +277,6 @@ lib/methods/facets/enumerable/group_by.rb
|
|
294
277
|
lib/methods/facets/enumerable/ideal_entropy.rb
|
295
278
|
lib/methods/facets/enumerable/injecting.rb
|
296
279
|
lib/methods/facets/enumerable/map_if.rb
|
297
|
-
lib/methods/facets/enumerable/map_with_counter.rb
|
298
280
|
lib/methods/facets/enumerable/map_with_index.rb
|
299
281
|
lib/methods/facets/enumerable/mode.rb
|
300
282
|
lib/methods/facets/enumerable/none.rb
|
@@ -303,10 +285,8 @@ lib/methods/facets/enumerable/occur.rb
|
|
303
285
|
lib/methods/facets/enumerable/one.rb
|
304
286
|
lib/methods/facets/enumerable/op_pow.rb
|
305
287
|
lib/methods/facets/enumerable/partition_by.rb
|
306
|
-
lib/methods/facets/enumerable/permutation.rb
|
307
288
|
lib/methods/facets/enumerable/permutation_number.rb
|
308
289
|
lib/methods/facets/enumerable/permute.rb
|
309
|
-
lib/methods/facets/enumerable/probability.rb
|
310
290
|
lib/methods/facets/enumerable/sum.rb
|
311
291
|
lib/methods/facets/enumerable/to_h.rb
|
312
292
|
lib/methods/facets/enumerable/to_hash.rb
|
@@ -323,7 +303,6 @@ lib/methods/facets/file/rewrite.rb
|
|
323
303
|
lib/methods/facets/file/rootname.rb
|
324
304
|
lib/methods/facets/file/sanitize.rb
|
325
305
|
lib/methods/facets/file/split_all.rb
|
326
|
-
lib/methods/facets/file/write.rb
|
327
306
|
lib/methods/facets/filetest
|
328
307
|
lib/methods/facets/filetest/root.rb
|
329
308
|
lib/methods/facets/float
|
@@ -332,7 +311,6 @@ lib/methods/facets/float/round_off.rb
|
|
332
311
|
lib/methods/facets/float/round_to.rb
|
333
312
|
lib/methods/facets/hash
|
334
313
|
lib/methods/facets/hash/alias.rb
|
335
|
-
lib/methods/facets/hash/at.rb
|
336
314
|
lib/methods/facets/hash/autonew.rb
|
337
315
|
lib/methods/facets/hash/collate.rb
|
338
316
|
lib/methods/facets/hash/delete_at.rb
|
@@ -343,10 +321,7 @@ lib/methods/facets/hash/diff.rb
|
|
343
321
|
lib/methods/facets/hash/each_with_index.rb
|
344
322
|
lib/methods/facets/hash/each_with_key.rb
|
345
323
|
lib/methods/facets/hash/graph.rb
|
346
|
-
lib/methods/facets/hash/has_keys.rb
|
347
324
|
lib/methods/facets/hash/has_only_keys.rb
|
348
|
-
lib/methods/facets/hash/insert.rb
|
349
|
-
lib/methods/facets/hash/inverse.rb
|
350
325
|
lib/methods/facets/hash/join.rb
|
351
326
|
lib/methods/facets/hash/keys_to_s.rb
|
352
327
|
lib/methods/facets/hash/keys_to_sym.rb
|
@@ -359,7 +334,6 @@ lib/methods/facets/hash/op_mul.rb
|
|
359
334
|
lib/methods/facets/hash/op_or.rb
|
360
335
|
lib/methods/facets/hash/op_plus.rb
|
361
336
|
lib/methods/facets/hash/pairs_at.rb
|
362
|
-
lib/methods/facets/hash/rekey.rb
|
363
337
|
lib/methods/facets/hash/replace_each.rb
|
364
338
|
lib/methods/facets/hash/reverse_merge.rb
|
365
339
|
lib/methods/facets/hash/reverse_update.rb
|
@@ -371,26 +345,21 @@ lib/methods/facets/hash/to_h.rb
|
|
371
345
|
lib/methods/facets/hash/to_proc.rb
|
372
346
|
lib/methods/facets/hash/to_proc_with_reponse.rb
|
373
347
|
lib/methods/facets/hash/to_struct.rb
|
374
|
-
lib/methods/facets/hash/traverse.rb
|
375
348
|
lib/methods/facets/hash/update_each.rb
|
376
349
|
lib/methods/facets/hash/update_keys.rb
|
377
350
|
lib/methods/facets/hash/update_values.rb
|
378
351
|
lib/methods/facets/hash/variablize_keys.rb
|
379
|
-
lib/methods/facets/hash/weave.rb
|
380
352
|
lib/methods/facets/hash/zipnew.rb
|
381
353
|
lib/methods/facets/integer
|
382
354
|
lib/methods/facets/integer/bit.rb
|
383
355
|
lib/methods/facets/integer/bit_set.rb
|
384
|
-
lib/methods/facets/integer/bitmask.rb
|
385
356
|
lib/methods/facets/integer/clear_bit.rb
|
386
357
|
lib/methods/facets/integer/clear_bitmask.rb
|
387
358
|
lib/methods/facets/integer/even.rb
|
388
359
|
lib/methods/facets/integer/fac.rb
|
389
360
|
lib/methods/facets/integer/fact.rb
|
390
|
-
lib/methods/facets/integer/factorial.rb
|
391
361
|
lib/methods/facets/integer/multiple.rb
|
392
362
|
lib/methods/facets/integer/odd.rb
|
393
|
-
lib/methods/facets/integer/of.rb
|
394
363
|
lib/methods/facets/integer/round_at.rb
|
395
364
|
lib/methods/facets/integer/round_to.rb
|
396
365
|
lib/methods/facets/integer/set_bit.rb
|
@@ -410,7 +379,6 @@ lib/methods/facets/kernel/__real__.rb
|
|
410
379
|
lib/methods/facets/kernel/__set__.rb
|
411
380
|
lib/methods/facets/kernel/__singleton_class__.rb
|
412
381
|
lib/methods/facets/kernel/as.rb
|
413
|
-
lib/methods/facets/kernel/ask.rb
|
414
382
|
lib/methods/facets/kernel/assign_from.rb
|
415
383
|
lib/methods/facets/kernel/assign_with.rb
|
416
384
|
lib/methods/facets/kernel/bitmask.rb
|
@@ -420,7 +388,6 @@ lib/methods/facets/kernel/called.rb
|
|
420
388
|
lib/methods/facets/kernel/callee.rb
|
421
389
|
lib/methods/facets/kernel/class_def.rb
|
422
390
|
lib/methods/facets/kernel/complete.rb
|
423
|
-
lib/methods/facets/kernel/constant.rb
|
424
391
|
lib/methods/facets/kernel/copy.rb
|
425
392
|
lib/methods/facets/kernel/d.rb
|
426
393
|
lib/methods/facets/kernel/deep_clone.rb
|
@@ -452,17 +419,13 @@ lib/methods/facets/kernel/object_clone.rb
|
|
452
419
|
lib/methods/facets/kernel/object_dup.rb
|
453
420
|
lib/methods/facets/kernel/object_hexid.rb
|
454
421
|
lib/methods/facets/kernel/object_send.rb
|
455
|
-
lib/methods/facets/kernel/op_esc.rb
|
456
422
|
lib/methods/facets/kernel/p.rb
|
457
|
-
lib/methods/facets/kernel/populate.rb
|
458
423
|
lib/methods/facets/kernel/pp_call_stack.rb
|
459
424
|
lib/methods/facets/kernel/pp_exception.rb
|
460
425
|
lib/methods/facets/kernel/qua_class.rb
|
461
426
|
lib/methods/facets/kernel/require_all.rb
|
462
|
-
lib/methods/facets/kernel/require_esc.rb
|
463
427
|
lib/methods/facets/kernel/require_local.rb
|
464
428
|
lib/methods/facets/kernel/resc.rb
|
465
|
-
lib/methods/facets/kernel/respond.rb
|
466
429
|
lib/methods/facets/kernel/returning.rb
|
467
430
|
lib/methods/facets/kernel/send_as.rb
|
468
431
|
lib/methods/facets/kernel/set_from.rb
|
@@ -477,19 +440,15 @@ lib/methods/facets/kernel/super_method.rb
|
|
477
440
|
lib/methods/facets/kernel/superior.rb
|
478
441
|
lib/methods/facets/kernel/supermethod.rb
|
479
442
|
lib/methods/facets/kernel/suppress.rb
|
480
|
-
lib/methods/facets/kernel/tap.rb
|
481
443
|
lib/methods/facets/kernel/this.rb
|
482
444
|
lib/methods/facets/kernel/to_b.rb
|
483
445
|
lib/methods/facets/kernel/true.rb
|
484
|
-
lib/methods/facets/kernel/val.rb
|
485
446
|
lib/methods/facets/kernel/warn_with_line.rb
|
486
447
|
lib/methods/facets/kernel/with.rb
|
487
448
|
lib/methods/facets/matchdata
|
488
449
|
lib/methods/facets/matchdata/match.rb
|
489
|
-
lib/methods/facets/matchdata/matchset.rb
|
490
450
|
lib/methods/facets/matchdata/matchtree.rb
|
491
451
|
lib/methods/facets/module
|
492
|
-
lib/methods/facets/module/abstract.rb
|
493
452
|
lib/methods/facets/module/alias_accessor.rb
|
494
453
|
lib/methods/facets/module/alias_method_chain.rb
|
495
454
|
lib/methods/facets/module/alias_module_function.rb
|
@@ -534,8 +493,6 @@ lib/methods/facets/module/revisal.rb
|
|
534
493
|
lib/methods/facets/module/wrap.rb
|
535
494
|
lib/methods/facets/module/wrap_method.rb
|
536
495
|
lib/methods/facets/nilclass
|
537
|
-
lib/methods/facets/nilclass/ergo.rb
|
538
|
-
lib/methods/facets/nilclass/status.rb
|
539
496
|
lib/methods/facets/nilclass/to_bool.rb
|
540
497
|
lib/methods/facets/nilclass/to_f.rb
|
541
498
|
lib/methods/facets/nilclass/to_h.rb
|
@@ -553,21 +510,16 @@ lib/methods/facets/object/with_accessor.rb
|
|
553
510
|
lib/methods/facets/object/with_reader.rb
|
554
511
|
lib/methods/facets/object/with_writer.rb
|
555
512
|
lib/methods/facets/proc
|
556
|
-
lib/methods/facets/proc/bind.rb
|
557
|
-
lib/methods/facets/proc/compose.rb
|
558
513
|
lib/methods/facets/proc/op_mul.rb
|
559
514
|
lib/methods/facets/proc/to_h.rb
|
560
515
|
lib/methods/facets/proc/to_method.rb
|
561
516
|
lib/methods/facets/proc/update.rb
|
562
517
|
lib/methods/facets/range
|
563
|
-
lib/methods/facets/range/combine.rb
|
564
|
-
lib/methods/facets/range/overlap.rb
|
565
518
|
lib/methods/facets/range/to_r.rb
|
566
519
|
lib/methods/facets/range/to_range.rb
|
567
520
|
lib/methods/facets/range/umbrella.rb
|
568
521
|
lib/methods/facets/range/within.rb
|
569
522
|
lib/methods/facets/regexp
|
570
|
-
lib/methods/facets/regexp/arity.rb
|
571
523
|
lib/methods/facets/regexp/to_re.rb
|
572
524
|
lib/methods/facets/regexp/to_regexp.rb
|
573
525
|
lib/methods/facets/string
|
@@ -576,15 +528,12 @@ lib/methods/facets/string/align_center.rb
|
|
576
528
|
lib/methods/facets/string/align_left.rb
|
577
529
|
lib/methods/facets/string/align_right.rb
|
578
530
|
lib/methods/facets/string/at.rb
|
579
|
-
lib/methods/facets/string/blank.rb
|
580
|
-
lib/methods/facets/string/bracket.rb
|
581
531
|
lib/methods/facets/string/brief.rb
|
582
532
|
lib/methods/facets/string/bytes.rb
|
583
533
|
lib/methods/facets/string/capitalized.rb
|
584
534
|
lib/methods/facets/string/chars.rb
|
585
535
|
lib/methods/facets/string/cleave.rb
|
586
536
|
lib/methods/facets/string/cmp.rb
|
587
|
-
lib/methods/facets/string/crypt.rb
|
588
537
|
lib/methods/facets/string/dequote.rb
|
589
538
|
lib/methods/facets/string/divide.rb
|
590
539
|
lib/methods/facets/string/downcase.rb
|
@@ -597,7 +546,6 @@ lib/methods/facets/string/fold.rb
|
|
597
546
|
lib/methods/facets/string/format.rb
|
598
547
|
lib/methods/facets/string/indent.rb
|
599
548
|
lib/methods/facets/string/index_all.rb
|
600
|
-
lib/methods/facets/string/interpolate.rb
|
601
549
|
lib/methods/facets/string/last.rb
|
602
550
|
lib/methods/facets/string/lchomp.rb
|
603
551
|
lib/methods/facets/string/line_wrap.rb
|
@@ -605,22 +553,17 @@ lib/methods/facets/string/lines.rb
|
|
605
553
|
lib/methods/facets/string/lowercase.rb
|
606
554
|
lib/methods/facets/string/margin.rb
|
607
555
|
lib/methods/facets/string/mscan.rb
|
608
|
-
lib/methods/facets/string/natcmp.rb
|
609
|
-
lib/methods/facets/string/nchar.rb
|
610
556
|
lib/methods/facets/string/peek.rb
|
611
557
|
lib/methods/facets/string/poke.rb
|
612
558
|
lib/methods/facets/string/pop.rb
|
613
559
|
lib/methods/facets/string/pull.rb
|
614
560
|
lib/methods/facets/string/push.rb
|
615
561
|
lib/methods/facets/string/quote.rb
|
616
|
-
lib/methods/facets/string/range.rb
|
617
562
|
lib/methods/facets/string/range_all.rb
|
618
563
|
lib/methods/facets/string/range_of_line.rb
|
619
|
-
lib/methods/facets/string/regesc.rb
|
620
564
|
lib/methods/facets/string/rewrite.rb
|
621
565
|
lib/methods/facets/string/shatter.rb
|
622
566
|
lib/methods/facets/string/shift.rb
|
623
|
-
lib/methods/facets/string/splice.rb
|
624
567
|
lib/methods/facets/string/sprintf.rb
|
625
568
|
lib/methods/facets/string/starts_with.rb
|
626
569
|
lib/methods/facets/string/store.rb
|
@@ -643,28 +586,18 @@ lib/methods/facets/string/word_filter.rb
|
|
643
586
|
lib/methods/facets/string/word_wrap.rb
|
644
587
|
lib/methods/facets/string/words.rb
|
645
588
|
lib/methods/facets/symbol
|
646
|
-
lib/methods/facets/symbol/chomp.rb
|
647
|
-
lib/methods/facets/symbol/generate.rb
|
648
589
|
lib/methods/facets/symbol/lchomp.rb
|
649
|
-
lib/methods/facets/symbol/not.rb
|
650
590
|
lib/methods/facets/symbol/op_tilde.rb
|
651
591
|
lib/methods/facets/symbol/pad.rb
|
652
|
-
lib/methods/facets/symbol/shadow.rb
|
653
|
-
lib/methods/facets/symbol/succ.rb
|
654
592
|
lib/methods/facets/symbol/to_const.rb
|
655
593
|
lib/methods/facets/symbol/to_proc.rb
|
656
594
|
lib/methods/facets/time
|
657
|
-
lib/methods/facets/time/change.rb
|
658
|
-
lib/methods/facets/time/elapse.rb
|
659
595
|
lib/methods/facets/time/stamp.rb
|
660
596
|
lib/methods/facets/time/to_date.rb
|
661
597
|
lib/methods/facets/time/to_s.rb
|
662
598
|
lib/methods/facets/time/to_time.rb
|
663
599
|
lib/methods/facets/trueclass
|
664
600
|
lib/methods/facets/trueclass/to_bool.rb
|
665
|
-
lib/methods/facets/unboundmethod
|
666
|
-
lib/methods/facets/unboundmethod/arguments.rb
|
667
|
-
lib/methods/facets/unboundmethod/name.rb
|
668
601
|
lib/more
|
669
602
|
lib/more/facets
|
670
603
|
lib/more/facets/advice.rb
|