Class: Object

Inherits:
BasicObject
Defined in:
lib/true_string.rb

Instance Method Summary collapse

Instance Method Details

#falsey?Boolean

Returns:

  • (Boolean)


53
54
55
# File 'lib/true_string.rb', line 53

def falsey?
  !self
end

#truthy?Boolean

Returns:

  • (Boolean)


49
50
51
# File 'lib/true_string.rb', line 49

def truthy?
  !!self
end