Sha256: d964c14edcbc012d436c5f4fee94d6ce91b16ae953f5c394767c9776a0dd4571
Contents?: true
Size: 334 Bytes
Versions: 110
Compression:
Stored size: 334 Bytes
Contents
# encoding: utf-8 # Object class Object # you get bool value # # true.to_bool # => true # false.to_bool # => false # 0.to_bool # => true # 1.to_bool # => true # ''.to_bool # => true # 'true'.to_bool # => true # 'false'.to_bool # => true # nil.to_bool # => false def to_bool !!self end end
Version data entries
110 entries across 110 versions & 1 rubygems