class FalseClass
Public Instance Methods
fals?(val=nil, &block)
click to toggle source
# File lib/ext/false.rb, line 13 def fals?(val=nil, &block) if block block.call(val) else val end end
iff?(_=nil)
click to toggle source
# File lib/ext/false.rb, line 21 def iff?(_=nil) nil end
iffn?(value = nil, &block)
click to toggle source
# File lib/ext/false.rb, line 25 def iffn?(value = nil, &block) block ? instance_exec(value, &block) : value end
tru?(_=nil, f=nil, &block)
click to toggle source
# File lib/ext/false.rb, line 9 def tru?(_=nil, f=nil, &block) f end
zero?()
click to toggle source
# File lib/ext/false.rb, line 5 def zero? true end