da_huangs_ruby_extensions 0.0.23 → 0.0.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/object_ext.rb +2 -2
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.23
1
+ 0.0.24
data/lib/object_ext.rb CHANGED
@@ -8,9 +8,9 @@ module DaHuang
8
8
  end
9
9
  end
10
10
 
11
- def in?(ary)
11
+ def in?(*args)
12
12
  raise %(An object cannot be "in" a #{ary.class.name}) unless ary.is_a? Array
13
- ary.include? self
13
+ args.flatten.include? self
14
14
  end
15
15
 
16
16
  def returning(val, &block)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 23
9
- version: 0.0.23
8
+ - 24
9
+ version: 0.0.24
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tyler Gannon
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-16 00:00:00 -07:00
17
+ date: 2010-09-17 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency