Class: TrueClass

Inherits:
Object show all
Defined in:
lib/wedge/utilis/blank.rb,
lib/wedge/utilis/duplicable.rb

Instance Method Summary collapse

Instance Method Details

#blank?false

true is not blank:

true.blank? # => false

Returns:

  • (false)


78
79
80
# File 'lib/wedge/utilis/blank.rb', line 78

def blank?
  false
end

#duplicable?Boolean

true is not duplicable:

true.duplicable? # => false
true.dup         # => TypeError: can't dup TrueClass

Returns:

  • (Boolean)


63
64
65
# File 'lib/wedge/utilis/duplicable.rb', line 63

def duplicable?
  false
end