Method: String#truthy?
- Defined in:
- lib/rack/param.rb
#truthy? ⇒ Boolean
13 |
# File 'lib/rack/param.rb', line 13 def truthy?; (/^(true|t|yes|y|1|on)$/ =~ downcase) != nil; end |
13 |
# File 'lib/rack/param.rb', line 13 def truthy?; (/^(true|t|yes|y|1|on)$/ =~ downcase) != nil; end |