andand 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -1
- data/lib/andand.rb +13 -6
- data/lib/andand/version.rb +1 -1
- data/website/index.html +1 -1
- metadata +1 -1
data/History.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
== 1.3.
|
1
|
+
== 1.3.1 2008-07-12
|
2
2
|
|
3
3
|
* 1 major enhancement:
|
4
4
|
* Initial release
|
@@ -12,3 +12,5 @@
|
|
12
12
|
* Plays well with other patch-artists
|
13
13
|
* 6 minor enhancement
|
14
14
|
* uses existing BlankSlate class if already defined
|
15
|
+
* 7 tiny enhancement
|
16
|
+
* use BasicObject as well
|
data/lib/andand.rb
CHANGED
@@ -99,13 +99,20 @@ class Object
|
|
99
99
|
end
|
100
100
|
|
101
101
|
unless Module.constants.include?('BlankSlate')
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
instance_methods.reject { |m| m =~ /^__/ }.each { |m| undef_method m }
|
102
|
+
if Module.constants.include?('BasicObject')
|
103
|
+
module AndAnd
|
104
|
+
class BlankSlate < BasicObject
|
106
105
|
end
|
107
|
-
|
108
|
-
|
106
|
+
end
|
107
|
+
else
|
108
|
+
module AndAnd
|
109
|
+
class BlankSlate
|
110
|
+
def self.wipe
|
111
|
+
instance_methods.reject { |m| m =~ /^__/ }.each { |m| undef_method m }
|
112
|
+
end
|
113
|
+
def initialize
|
114
|
+
BlankSlate.wipe
|
115
|
+
end
|
109
116
|
end
|
110
117
|
end
|
111
118
|
end
|
data/lib/andand/version.rb
CHANGED
data/website/index.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>Object#andand</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/andand"; return false'>
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/andand" class="numbers">1.3.
|
36
|
+
<a href="http://rubyforge.org/projects/andand" class="numbers">1.3.1</a>
|
37
37
|
</div>
|
38
38
|
<h1>→ ‘andand’</h1>
|
39
39
|
|