Class: TrueClass

Inherits:
Object show all
Defined in:
lib/extlib/blank.rb,
lib/extlib/boolean.rb,
lib/extlib/try_dup.rb

Overview

class NilClass

Instance Method Summary collapse

Instance Method Details

#blank?FalseClass

True is never blank.

true.blank?       #=>  false

Returns:



56
57
58
# File 'lib/extlib/blank.rb', line 56

def blank?
  false
end

#try_dupObject



2
3
4
# File 'lib/extlib/boolean.rb', line 2

def try_dup
  self
end