is_a_collection 0.0.3 → 0.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/is_a_collection.rb +2 -2
  2. metadata +3 -3
@@ -7,10 +7,10 @@ class Class
7
7
  extend ClassMethods
8
8
 
9
9
  define_method :add_to_collection do
10
- self.class.__collection[send id_method] = self
10
+ self.class.__collection[__send__ id_method] = self
11
11
  end
12
12
  define_method :remove_from_collection do
13
- self.class.__collection.delete(send id_method)
13
+ self.class.__collection.delete(__send__ id_method)
14
14
  end
15
15
  end
16
16
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Niko Dittmann
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-10 00:00:00 +01:00
17
+ date: 2010-12-02 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency