adts 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/adt/constructor.rb +2 -1
- data/lib/adt/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: 34a7017471ff4ed0a951169b42115f5d18a665d6
|
4
|
+
data.tar.gz: 06669dcc84ec131c689a355211447e0238f65789
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 923bf056ae9a68f6f35faecdbefaab43a3ee84ad7110e7db12300717978a0a3d36745268e7f34252f271131a4849a2360a0daf2ba304bc70e8331235a594a3f3
|
7
|
+
data.tar.gz: ace61d08daa16a1c47b3fe28433cb8a55e20199276680943d195b55a10178c55cb03f2c5f847f352f424c7157a4844da2e538410a3e95fd70e25eac6251b7601
|
data/lib/adt/constructor.rb
CHANGED
@@ -4,7 +4,7 @@ module ADT
|
|
4
4
|
|
5
5
|
def initialize(parent, name, parameters, &block)
|
6
6
|
@name = name
|
7
|
-
@klass = Class.new(parent
|
7
|
+
@klass = Class.new(parent)
|
8
8
|
keys = parameters.keys
|
9
9
|
types = parameters.values
|
10
10
|
@klass.class_eval """
|
@@ -27,6 +27,7 @@ module ADT
|
|
27
27
|
end
|
28
28
|
alias inspect to_s
|
29
29
|
"
|
30
|
+
@klass.class_eval(&block) if block
|
30
31
|
@parameters = parameters
|
31
32
|
@others = []
|
32
33
|
end
|
data/lib/adt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep M. Bach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|