motion-define-method 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/define-method/module_ext.rb +2 -2
- data/lib/define-method/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
@@ -15,11 +15,11 @@ class Object
|
|
15
15
|
alias_method :original_module_method_missing, :method_missing
|
16
16
|
def method_missing(method, *args, &block)
|
17
17
|
self.class.define_method_blocks ||= {}
|
18
|
-
if self.class.define_method_blocks.include?(method)
|
18
|
+
if self.class.define_method_blocks && self.class.define_method_blocks.include?(method)
|
19
19
|
return self.class.define_method_blocks[method].call(*args)
|
20
20
|
else
|
21
21
|
self.class.ancestors.each do |clazz|
|
22
|
-
if clazz.define_method_blocks.include?(method)
|
22
|
+
if clazz.define_method_blocks && clazz.define_method_blocks.include?(method)
|
23
23
|
return clazz.define_method_blocks[method].call(*args)
|
24
24
|
end
|
25
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-define-method
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -75,7 +75,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
75
75
|
version: '0'
|
76
76
|
segments:
|
77
77
|
- 0
|
78
|
-
hash:
|
78
|
+
hash: -3361199952718360998
|
79
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
80
|
none: false
|
81
81
|
requirements:
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
version: '0'
|
85
85
|
segments:
|
86
86
|
- 0
|
87
|
-
hash:
|
87
|
+
hash: -3361199952718360998
|
88
88
|
requirements: []
|
89
89
|
rubyforge_project:
|
90
90
|
rubygems_version: 1.8.24
|