Class: TrueClass

Inherits:
Object show all
Defined in:
lib/core_ext/boolean.rb

Instance Method Summary collapse

Instance Method Details

#no?Boolean Also known as: false?

See String#no? from the core extensions. Always false here.

Returns:

  • (Boolean)


8
# File 'lib/core_ext/boolean.rb', line 8

def no? ; false ; end

#yes?Boolean Also known as: true?

See String#yes? from the core extensions. Always true here.

Returns:

  • (Boolean)


4
# File 'lib/core_ext/boolean.rb', line 4

def yes? ; true ; end