content="text/html; charset=iso-2022-jp"> previous - up - next - index

Properties

Super Class:

Object

Included Module:

Enumerable

Class Description:

The Properties class provides simple properties database able to be {stored into/restored from} human-readable format file. Property is a mapping from key to value used as resources by applications.

For objects val used as property values, eval(val.inspect) == val must hold so that you can restore properties after storing. If not so, you must implement an appropriate inspect method for value class.

Example:

default = Properties.new
default.load('test.default')
prop = Properties.new(default)
prop.load('dot.testrc')
print("dict_file = "); p(prop['dict_file'])

Class Methods:

Instance Methods:


previous - up - next - index

Author: igarashi@ueda.info.waseda.ac.jp

Generated at Mon Mar 08 17:05:27 JST 1999 by rubyapi2