mores 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mores/block_initialize.rb +16 -0
- data/lib/mores/succession.rb +1 -0
- data/lib/mores/version.rb +1 -1
- data/lib/mores.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c825f049765d83153bea198a9c80472ded666b2
|
4
|
+
data.tar.gz: bf64d654bb527c103d9ef26d1283a8724231acc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81c6a14bb8284528ccf33ba80cebe8bf4c7c35a496a63f79f30b7937b5009caa90dd0bdf3a782e24533f6195ac70ada06bc3a890da4693e8b51b64b400fa2cd2
|
7
|
+
data.tar.gz: 3037ddb8b32afbc6be8978930d3ea40155a3399f8a9046e0d6eb1ac7d18e1711c8a671086ebc5aabde2e80eacb7ee8baf8eeb6d4dff0bd8dec085c30cf8af9b5
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Mores
|
2
|
+
|
3
|
+
module BlockInitialize
|
4
|
+
def new(*args, &block)
|
5
|
+
case block_given? and block.arity
|
6
|
+
when 0
|
7
|
+
super(*args, &nil).tap { |x| x.instance_exec &block }
|
8
|
+
when 1
|
9
|
+
super(*args, &nil).tap &block
|
10
|
+
else
|
11
|
+
super
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
data/lib/mores/succession.rb
CHANGED
data/lib/mores/version.rb
CHANGED
data/lib/mores.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mores
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Petter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- LICENSE.txt
|
78
78
|
- README.md
|
79
79
|
- lib/mores.rb
|
80
|
+
- lib/mores/block_initialize.rb
|
80
81
|
- lib/mores/linked_list.rb
|
81
82
|
- lib/mores/succession.rb
|
82
83
|
- lib/mores/version.rb
|