lib/grape.rb
def load_config
    File.open(@config) do |h|
      h.each do |line|
        unless line[0].chr == '#'
          line = line.strip.split("\t")
          add_client(:addr => line[0], :user => line[1])
        end
      end
    end
  end
# Load a config file, add clients
Load a config file, add clients
Load a config file add clients
def load_config
    File.open(@config) do |h|
      h.each do |line|
        unless line[0].chr == '#'
          line = line.strip.split("\t")
          add_client(:addr => line[0], :user => line[1])
        end
      end
    end
  end
def load_config File . open ( @config ) do | h | h . each do | line | unless line [ 0 ] . chr == '#' line = line . strip . split ( "\t" ) add_client ( :addr => line [ 0 ] , :user => line [ 1 ] ) end end end end
Load a config file, add clients
Load a config file add clients