multitype-introspection 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/multitype-introspection.rb +8 -8
- data/multitype-introspection.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
@@ -7,11 +7,11 @@
|
|
7
7
|
class Object
|
8
8
|
|
9
9
|
##
|
10
|
-
# Returns
|
10
|
+
# Returns +true+ if object is an instance of the given classes.
|
11
11
|
#
|
12
|
-
# @see
|
12
|
+
# @see #kind_of_any?
|
13
13
|
# @param [Array] classes array of class objects
|
14
|
-
# @return [Boolean]
|
14
|
+
# @return [Boolean] +true+ if it is, +false+ in otherwise
|
15
15
|
#
|
16
16
|
|
17
17
|
def instance_of_any?(classes)
|
@@ -27,14 +27,14 @@ class Object
|
|
27
27
|
|
28
28
|
return false
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
31
|
##
|
32
|
-
# Returns
|
33
|
-
# if one of classes are one of the superclasses of
|
34
|
-
# included in
|
32
|
+
# Returns +true+ if one of classes are the class of object,
|
33
|
+
# or if one of classes are one of the superclasses of object or
|
34
|
+
# modules included in object.
|
35
35
|
#
|
36
36
|
# @param [Array] classes array of class objects
|
37
|
-
# @return [Boolean]
|
37
|
+
# @return [Boolean] +true+ if it is, +false+ in otherwise
|
38
38
|
#
|
39
39
|
|
40
40
|
def kind_of_any?(classes)
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{multitype-introspection}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Martin Kozák"]
|
12
|
-
s.date = %q{2011-01-
|
12
|
+
s.date = %q{2011-01-27}
|
13
13
|
s.email = %q{martinkozak@martinkozak.net}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE.txt",
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- "Martin Koz\xC3\xA1k"
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-01-
|
17
|
+
date: 2011-01-27 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -80,7 +80,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
80
80
|
requirements:
|
81
81
|
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
hash: -
|
83
|
+
hash: -3993030152410539996
|
84
84
|
segments:
|
85
85
|
- 0
|
86
86
|
version: "0"
|