rextra 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rextra/cutting.rb +5 -5
- metadata +1 -1
data/lib/rextra/cutting.rb
CHANGED
@@ -36,17 +36,17 @@ end
|
|
36
36
|
# -----------------------------------------------------------------------------
|
37
37
|
module Rextra
|
38
38
|
module Enumerable
|
39
|
-
class
|
39
|
+
class All < SimpleObject
|
40
40
|
def initialize( master ) @master = master end
|
41
|
-
end
|
42
|
-
class All < Base
|
43
41
|
def method_missing( sym, *args )
|
44
42
|
@master.map do |e| e.send sym, *args end
|
45
43
|
end
|
46
44
|
end
|
47
|
-
class Do <
|
45
|
+
class Do < SimpleObject
|
46
|
+
def initialize( master ) @master = master.clone end
|
48
47
|
def method_missing( sym, *args )
|
49
|
-
@master.map do |e| e.send sym, *args end
|
48
|
+
@master.map! do |e| e.send sym, *args end
|
49
|
+
self
|
50
50
|
end
|
51
51
|
def end() @master end
|
52
52
|
end
|