rextra 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|