Expose Extension info through hash-like access.

This commit is contained in:
Pistos 2009-06-27 13:30:01 -04:00
parent 7c338d9f6d
commit ce8aeff7a0

View file

@ -7,6 +7,7 @@ module Diakonos
def initialize( dir )
@scripts = []
@confs = []
@info = YAML.load_file( File.join( dir, 'info.yaml' ) )
Dir[ File.join( dir, '**', '*.rb' ) ].each do |ext_file|
@scripts << ext_file
@ -17,6 +18,10 @@ module Diakonos
end
end
def []( key )
@info[ key ]
end
end
end