mobj 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mobj.rb +6 -6
- metadata +1 -1
data/lib/mobj.rb
CHANGED
@@ -5,10 +5,10 @@ module Mobj
|
|
5
5
|
klass = class << self; self end
|
6
6
|
klass.superclass
|
7
7
|
end
|
8
|
-
def null!(*
|
9
|
-
def nil!(*
|
8
|
+
def null!(*) self end
|
9
|
+
def nil!(*) self end
|
10
10
|
def itself() self end
|
11
|
-
def alter(*args, &block) instance_exec(*args, &block)
|
11
|
+
def alter(*args, &block) instance_exec(*args, &block) end
|
12
12
|
alias_method :o!, :alter
|
13
13
|
|
14
14
|
end
|
@@ -109,15 +109,15 @@ module Mobj
|
|
109
109
|
file != __FILE__ || !(MOBJ_NULL_REGION_BEGIN..MOBJ_NULL_REGION_END).cover?(line.to_i)
|
110
110
|
end
|
111
111
|
end
|
112
|
-
def null?(*
|
112
|
+
def null?(*)
|
113
113
|
@@null ||= nil
|
114
114
|
@@null && @@null == __mobj__caller
|
115
115
|
end
|
116
|
-
def null!(*
|
116
|
+
def null!(*)
|
117
117
|
@@null = __mobj__caller
|
118
118
|
self
|
119
119
|
end
|
120
|
-
def nil!(*
|
120
|
+
def nil!(*)
|
121
121
|
@@null = nil
|
122
122
|
self
|
123
123
|
end
|