call_super 0.0.3 → 0.0.4
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.
- data/CHANGELOG.md +6 -0
- data/lib_ext/module.rb +0 -20
- data/lib_ext/object.rb +0 -20
- metadata +2 -2
data/CHANGELOG.md
CHANGED
data/lib_ext/module.rb
CHANGED
@@ -4,26 +4,6 @@ class ::Module
|
|
4
4
|
|
5
5
|
include ::CallSuper
|
6
6
|
|
7
|
-
######################
|
8
|
-
# original_include #
|
9
|
-
######################
|
10
|
-
|
11
|
-
alias_method :original_include, :include
|
12
|
-
|
13
|
-
#############
|
14
|
-
# include #
|
15
|
-
#############
|
16
|
-
|
17
|
-
###
|
18
|
-
# Override Object#include so that modules extending Module instance can define #include.
|
19
|
-
#
|
20
|
-
def include( *modules )
|
21
|
-
|
22
|
-
super if defined?( super )
|
23
|
-
original_include( *modules )
|
24
|
-
|
25
|
-
end
|
26
|
-
|
27
7
|
##############################
|
28
8
|
# original_append_features #
|
29
9
|
##############################
|
data/lib_ext/object.rb
CHANGED
@@ -4,24 +4,4 @@ class ::Object
|
|
4
4
|
|
5
5
|
include ::CallSuper
|
6
6
|
|
7
|
-
#####################
|
8
|
-
# original_extend #
|
9
|
-
#####################
|
10
|
-
|
11
|
-
alias_method :original_extend, :extend
|
12
|
-
|
13
|
-
############
|
14
|
-
# extend #
|
15
|
-
############
|
16
|
-
|
17
|
-
###
|
18
|
-
# Override Object.extend so that modules extending Object instance can define #extend.
|
19
|
-
#
|
20
|
-
def extend( *modules )
|
21
|
-
|
22
|
-
super if defined?( super )
|
23
|
-
original_extend( *modules )
|
24
|
-
|
25
|
-
end
|
26
|
-
|
27
7
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: call_super
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
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: 2013-
|
12
|
+
date: 2013-08-13 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Cause Object#inherited, Module#extended, Module#extend_object, Module#included,
|
15
15
|
Module#append_features to call super if defined.
|