Sha256: 026c60da5fc00accef70454830f09ab336ad2cd7ff225c498cb9174e9454bf9c

Contents?: true

Size: 293 Bytes

Versions: 1

Compression:

Stored size: 293 Bytes

Contents

class AppConfig
  def initialize()
  @values={}
    file=File.open("config.properties","r")
    file.each_line{|line|
      line.gsub!(/#.*/,"")
      k,v=line.split("=")
      if k and v
        @values[k]=v
      end
    }
    file.close
  end
  
  def [](name)
    @values[name]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
appswarm-0.0.1 lib/appswarm/app_config.rb