constructor_shortcut 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/constructor_shortcut/version.rb +1 -1
- data/lib/constructor_shortcut.rb +3 -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: 21d79b4c674c5667c3eb6bfdd4af31722ede45f0
|
4
|
+
data.tar.gz: 9a42f2c76c08fb9054a72648100ca69f98e443f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 445ae2bfb722fcc9146c5928190acfd36e2f8acf58aa1fd78c431c5791a88decb295430826fb124d832c48a4759674ee4149d2eebeb32f474940bcb3ec1223ef
|
7
|
+
data.tar.gz: 45703c3c8036be719459f4e954da4fd180c128d47803b4245d277eae52b54d0f74ce417cb72ee3b658aa28088070d1dff14aa0479dfae2c9f2fc87a6473c78cb
|
data/lib/constructor_shortcut.rb
CHANGED
@@ -8,9 +8,11 @@ module ConstructorShortcut
|
|
8
8
|
@cache ||= {}
|
9
9
|
@cache[name] ||=
|
10
10
|
Module.new do
|
11
|
+
@key = name.inspect
|
12
|
+
|
11
13
|
class << self
|
12
14
|
def name
|
13
|
-
"ConstructorShortcut[#{key}]"
|
15
|
+
"ConstructorShortcut[#{@key}]"
|
14
16
|
end
|
15
17
|
alias_method :to_s, :name
|
16
18
|
alias_method :to_str, :name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: constructor_shortcut
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Viktor Sokolov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|