class TrueClass

Public Instance Methods

to_b() click to toggle source

Returns true if invoked on TrueClass instance.

Examples

true.to_b #=> true
# File core_extensions/true_class.rb, line 18
def to_b
  true
end
to_i() click to toggle source

Returns 1 if invoked on TrueClass instance.

Examples

true.to_i #=> 1
# File core_extensions/true_class.rb, line 9
def to_i
  1
end