# File lib/rhc/helpers.rb, line 516 def to_boolean(s, or_nil=false) return nil if s.nil? && or_nil s.is_a?(String) ? !!(s =~ /^(true|t|yes|y|1)$/i) : s end