forwardable-extended 2.4.1 → 2.4.2
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.
- checksums.yaml +4 -4
- data/lib/forwardable/extended.rb +12 -0
- data/lib/forwardable/extended/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be5207d400424b075fba1ed01f4aa1b769dddf5c
|
4
|
+
data.tar.gz: 17aee56cf063550c676711b16293906f778ce82d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 523ddcb04b242352e8f51c53574943cd5b1561d84ab2fb984dccd750b718084090394618abe55780bcadd6ee2b13aeae7ebe0500bdc8f1b0b6c0619f5d9997c9
|
7
|
+
data.tar.gz: 632e6783ab0fd1f99dac366dff16b4be371b707af2a3db34db01b809b5c980377a4ab8b864059cc5e70c51a04837fc54b8fcdaf29b80dd9caea136301f13ce96
|
data/lib/forwardable/extended.rb
CHANGED
@@ -10,6 +10,18 @@ require "forwardable"
|
|
10
10
|
module Forwardable
|
11
11
|
module Extended
|
12
12
|
|
13
|
+
# ------------------------------------------------------------------------
|
14
|
+
# Make our methods private on the class, there is no reason for public.
|
15
|
+
# ------------------------------------------------------------------------
|
16
|
+
|
17
|
+
def self.extended(klass)
|
18
|
+
instance_methods.each do |method|
|
19
|
+
klass.private_class_method(
|
20
|
+
method
|
21
|
+
)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
13
25
|
# ------------------------------------------------------------------------
|
14
26
|
# A simpler delegator that wraps around `def_delegator` and makes it easy.
|
15
27
|
# ------------------------------------------------------------------------
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forwardable-extended
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordon Bedwell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Forwardable with hash, and instance variable extensions.
|
14
14
|
email:
|