Sha256: 39a496775dcef51055eb3defa908e05975019011dc2756d98ac2224d3ad29770
Contents?: true
Size: 377 Bytes
Versions: 1
Compression:
Stored size: 377 Bytes
Contents
# -*- encoding: utf-8 -*- # -*- frozen_string_literal: true -*- # -*- warn_indent: true -*- class FalseClass # Returns +0+ if invoked on +FalseClass+ instance. # # ==== Examples # # false.to_i #=> 0 def to_i 0 end # Returns +false+ if invoked on +FalseClass+ instance. # # ==== Examples # # false.to_b #=> false def to_b false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rb_core_extensions-0.1.3 | lib/core_extensions/false_class.rb |