Class: GvcsFx::Global
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize ⇒ Global
constructor
A new instance of Global.
- #storage(reload = true) ⇒ Object
- #vcs ⇒ Object
Constructor Details
#initialize ⇒ Global
Returns a new instance of Global.
31 32 33 |
# File 'lib/global.rb', line 31 def initialize @logger = Tlogger.new end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
30 31 32 |
# File 'lib/global.rb', line 30 def logger @logger end |
Instance Method Details
#storage(reload = true) ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/global.rb', line 35 def storage(reload = true) if @store.nil? or reload @store = GvcsFx::DataStore::DefaultDataStore.load end @store end |
#vcs ⇒ Object
43 44 45 46 47 48 49 |
# File 'lib/global.rb', line 43 def vcs if @vcs.nil? @vcs = Gvcs::Vcs.new end @vcs end |