Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/param.rb

Instance Method Summary collapse

Instance Method Details

#falsey?Boolean

Returns:

[View source]

14
# File 'lib/rack/param.rb', line 14

def falsey?; (/^(false|f|no|n|0|off)$/ =~ downcase) != nil; end

#truthy?Boolean

Returns:

[View source]

13
# File 'lib/rack/param.rb', line 13

def truthy?; (/^(true|t|yes|y|1|on)$/ =~ downcase) != nil; end