Class: IdStore
- Defined in:
- lib/puppet/vendor/rgen/lib/ea_support/id_store.rb
Instance Method Summary collapse
- #idHash ⇒ Object
-
#initialize(fileName = nil) ⇒ IdStore
constructor
A new instance of IdStore.
- #load ⇒ Object
- #store ⇒ Object
Constructor Details
#initialize(fileName = nil) ⇒ IdStore
Returns a new instance of IdStore.
4 5 6 7 8 9 10 11 |
# File 'lib/puppet/vendor/rgen/lib/ea_support/id_store.rb', line 4 def initialize(fileName=nil) if fileName raise "Base directory does not exist: #{File.dirname(fileName)}" \ unless File.exist?(File.dirname(fileName)) @idsFileName = fileName end @idHash = nil end |
Instance Method Details
#idHash ⇒ Object
13 14 15 16 |
# File 'lib/puppet/vendor/rgen/lib/ea_support/id_store.rb', line 13 def idHash load unless @idHash @idHash end |