module ToBoolean

Public Instance Methods

to_bool() click to toggle source
# File lib/yacli/base.rb, line 7
def to_bool
  return true if self == true || to_s.strip =~ /^(true|yes|y|1)$/i
  false
end