lib/chatterbot/config.rb
def slurp_file(f)
      f = File.expand_path(f)
      tmp = {}

      if File.exist?(f)
        File.open( f ) { |yf| 
          tmp = YAML::load( yf ) 
        }
      end
      tmp.symbolize_keys! unless tmp == false
    end
def slurp_file(f)
      f = File.expand_path(f)
      tmp = {}

      if File.exist?(f)
        File.open( f ) { |yf| 
          tmp = YAML::load( yf ) 
        }
      end
      tmp.symbolize_keys! unless tmp == false
    end
def slurp_file ( f ) f = File . expand_path ( f ) tmp = { } if File . exist? ( f ) File . open ( f ) { | yf | tmp = YAML :: load ( yf ) } end tmp . symbolize_keys! unless tmp == false end
load in a config file
load in a config file