Top Level Namespace
Defined Under Namespace
Modules: BigMath, Enumerable, Kernel, Math Classes: Array, Complex, Enumerator, Exception, Float, FragileMethodChain, Hash, Iterator, MatchData, MaybeDelegator, Method, Numeric, Object, Proc, Range, Regexp, String, Time
Class Method Summary collapse
Instance Method Summary collapse
-
#Bool(arg) ⇒ Object
Converts arg to a boolean (true or false).
Class Method Details
.to_b ⇒ Object
26 |
# File 'lib/mug/bool.rb', line 26 def nil.to_b; false; end |
.to_bool ⇒ Object
25 |
# File 'lib/mug/bool.rb', line 25 def nil.to_bool; false; end |
Instance Method Details
#Bool(arg) ⇒ Object
Converts arg to a boolean (true or false).
5 6 7 |
# File 'lib/mug/bool.rb', line 5 def Bool(arg) !!arg end |