rextra 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rextra/cutting.rb +5 -5
  2. metadata +1 -1
@@ -36,17 +36,17 @@ end
36
36
  # -----------------------------------------------------------------------------
37
37
  module Rextra
38
38
  module Enumerable
39
- class Base < SimpleObject
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 < Base
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
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: rextra
5
5
  version: !ruby/object:Gem::Version
6
- version: 2.0.3
6
+ version: 2.0.4
7
7
  date: 2006-11-02 00:00:00 -07:00
8
8
  summary: Ruby extras.
9
9
  require_paths: