inn 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/inn.rb +3 -15
  3. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9649ac3b77cc1d6879744bfa37653c6e87ebd9a
4
- data.tar.gz: fc956f7cf00f61b8ba66bd4439c92cb0afdb8b52
3
+ metadata.gz: f6bea0e877f330f153aac1be7550e001abec1ff3
4
+ data.tar.gz: 70ca1212ed62c90dd62c091734534fb0fb105e5b
5
5
  SHA512:
6
- metadata.gz: 2350631e10cf5b49ddb744ad7521af9795c5efcf15d3d78d48af943515693119c9edc03c37e748be17fa01d739521b223e17ee12ab205d060b5c09fba4f05436
7
- data.tar.gz: f8ed61137a5684e0a69c2a694d6c36bd3826ebd1a836b1a2dd76ae28207ee024527f55b41d6275199de6bcd0d3d33039fd5a248373e0e0d32a3a2c256d71b6bd
6
+ metadata.gz: 13193136e2e4453daf683fbce8889e2c2b57056deaa9c8870403bb5046bdad4af8b19e5541e5a280ccf4ed75dbcd8b2882383b7de53329f2b9fdde9a62391b66
7
+ data.tar.gz: 1b133d847d1e602717f1790d02949b737142741e67aedb121ed1b410909115a8d14ab178afdc71c2fcce302f49ef8ee829f9a3c9886dc2229de31212c205b613
data/lib/inn.rb CHANGED
@@ -1,17 +1,5 @@
1
- module Inn
2
- def in?(arr)
3
- arr.include? self
1
+ class Object
2
+ def in?(obj)
3
+ obj.include?(self) if obj.respond_to? :include?
4
4
  end
5
- end
6
-
7
- class String
8
- include Inn
9
- end
10
-
11
- class Integer
12
- include Inn
13
- end
14
-
15
- class Float
16
- include Inn
17
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas E. Rogers
@@ -10,7 +10,8 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2016-06-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Adds ability to see if a String,Integer,or Float is 'in' an array
13
+ description: Adds ability to see if an object is 'in' another object. Essentially
14
+ an inverse of `.include?`.
14
15
  email: doug@prettyinstant.com
15
16
  executables: []
16
17
  extensions: []