transparent_nil 0.1.1 → 0.1.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.
- data/README.txt +3 -3
- data/lib/transparent_nil/nil.rb +6 -2
- data/lib/transparent_nil.rb +1 -1
- metadata +2 -2
data/README.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
|
-
=
|
2
|
+
= Transparent Nil
|
3
3
|
|
4
|
-
http://bklippstein.github.com/
|
4
|
+
http://bklippstein.github.com/transparent_nil/
|
5
5
|
|
6
6
|
|
7
7
|
== Features
|
@@ -22,7 +22,7 @@ http://creativecommons.org/licenses/by-sa/3.0/de/deed.en
|
|
22
22
|
|
23
23
|
|
24
24
|
== Homepage
|
25
|
-
http://bklippstein.github.com/
|
25
|
+
http://bklippstein.github.com/transparent_nil/
|
26
26
|
|
27
27
|
|
28
28
|
== Author
|
data/lib/transparent_nil/nil.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# ruby encoding: utf-8
|
2
2
|
# ü
|
3
3
|
|
4
|
-
puts 'required nil.rb'
|
4
|
+
puts 'required TransparentNil::nil.rb'
|
5
5
|
|
6
6
|
|
7
7
|
# == Transparent Nil
|
@@ -13,7 +13,7 @@ puts 'required nil.rb'
|
|
13
13
|
# Nil verhält sich damit wie alle anderen Objekte auch.
|
14
14
|
# Man kann immer noch nach Nil fragen, wenn man es möchte, aber man muss es nicht mehr tun!
|
15
15
|
#
|
16
|
-
|
16
|
+
module TransparentNil
|
17
17
|
|
18
18
|
# Rückgabe: Array mit dem einen Element
|
19
19
|
def <<(element); [element]; end
|
@@ -78,6 +78,10 @@ class NilClass
|
|
78
78
|
|
79
79
|
end
|
80
80
|
|
81
|
+
class NilClass
|
82
|
+
include TransparentNil
|
83
|
+
end
|
84
|
+
|
81
85
|
|
82
86
|
|
83
87
|
|
data/lib/transparent_nil.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transparent_nil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -66,7 +66,7 @@ files:
|
|
66
66
|
- test/_start_all.rb
|
67
67
|
- test/test_nil.rb
|
68
68
|
- .gemtest
|
69
|
-
homepage: http://bklippstein.github.com/
|
69
|
+
homepage: http://bklippstein.github.com/transparent_nil/
|
70
70
|
licenses: []
|
71
71
|
post_install_message:
|
72
72
|
rdoc_options:
|