wordnik_ruby_helpers 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module WordnikRubyHelpers
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -143,6 +143,12 @@ class Object
143
143
  !self.to_s.match(/\A[+-]?\d+?(\.\d+)?\Z/).nil?
144
144
  end
145
145
 
146
+ # http://zeke.tumblr.com/post/6167737445/ruby-syntactic-sugar-object-in
147
+ # 4.in? [1, 2, 3, 4, 5]
148
+ def in?(obj)
149
+ obj.respond_to?(:include?) ? obj.include?(self) : false
150
+ end
151
+
146
152
  end
147
153
 
148
154
  class String
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: wordnik_ruby_helpers
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.3
5
+ version: 0.1.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Zeke Sikelianos
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-06-02 00:00:00 -05:00
14
+ date: 2011-06-03 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency