lib/lumberg/whm.rb
def from_bool(input)
        if input == false
          0
        elsif input == true
          1
        elsif input.is_a?(Hash)
          Hash[
            input.map {|k,v|
              v = from_bool(v)
              [k,v]
            }
          ]
        end
      end
# Converts boolean values to 0 or 1
Converts boolean values to 0 or 1
Converts boolean values to 0 or 1
def from_bool(input)
        if input == false
          0
        elsif input == true
          1
        elsif input.is_a?(Hash)
          Hash[
            input.map {|k,v|
              v = from_bool(v)
              [k,v]
            }
          ]
        end
      end
def from_bool ( input ) if input == false 0 elsif input == true 1 elsif input . is_a? ( Hash ) Hash [ input . map { | k , v | v = from_bool ( v ) [ k , v ] } ] end end
Converts boolean values to 0 or 1
Converts boolean values to 0 or 1
input