ruby_ext 0.5.4 → 0.5.5
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.
@@ -65,7 +65,8 @@ class Module
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def inherited &b
|
68
|
-
@inherited
|
68
|
+
@inherited ||= []
|
69
|
+
@inherited << b if b
|
69
70
|
@inherited
|
70
71
|
end
|
71
72
|
|
@@ -77,16 +78,18 @@ class Module
|
|
77
78
|
# Class Methods
|
78
79
|
unless self.class_prototype == mod.class_prototype
|
79
80
|
if self.class == Module
|
80
|
-
# p self => self.class_prototype, mod => mod.class_prototype
|
81
81
|
class_prototype.include2 mod.class_prototype
|
82
82
|
else
|
83
83
|
(class << self; self end).include2 mod.class_prototype
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
87
|
-
# callback
|
88
|
-
|
89
|
-
|
87
|
+
# Inherited callback
|
88
|
+
if self.class == Class
|
89
|
+
mod.ancestors.each do |anc|
|
90
|
+
anc.inherited.each{|b| self.instance_eval &b}
|
91
|
+
end
|
92
|
+
end
|
90
93
|
end
|
91
94
|
end
|
92
95
|
end
|
data/lib/ruby_ext/core/time.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-09-
|
12
|
+
date: 2011-09-05 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email:
|