Sha256: e8640e1adbe5d3418c748cb7025cea04837167ebd40f6e65b437ec3d635ebf2b
Contents?: true
Size: 1.16 KB
Versions: 3
Compression:
Stored size: 1.16 KB
Contents
require 'singleton' require 'yaml' require_relative "./common" require_relative "./ric_disk_config" =begin This is a singleton class. You call me this way.. You call me with: Storazzo::RicDiskSampleConfig.instance() =end module Storazzo class Storazzo::RicDiskSampleConfig < Storazzo::RicDiskConfig #include Storazzo::Common #include Singleton public def load # _sample_version deb("[RicDiskSampleConfig] Wheew 1! We're NOT destroying the world here. We're actually instancing a second Singleton which is a child of the mother, and this time doing things nicely and Rubily.") # super.load DefaultGemLocationForTests #super.load(DefaultGemLocationForTests, :verbose => true ) super(DefaultGemLocationForTests, :verbose => false ) end def load_sample_version puts white("[RicDiskSampleConfig] Wheew 2! We're NOT destroying the world here. We're actually instancing a second Singleton which is a child of the mother, and this time doing things nicely and Rubily.") super(DefaultGemLocationForTests, :verbose => false ) end end end # module Storazzo
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
storazzo-0.4.2 | lib/storazzo/ric_disk_sample_config.rb |
storazzo-0.4.1 | lib/storazzo/ric_disk_sample_config.rb |
storazzo-0.3.8 | lib/storazzo/ric_disk_sample_config.rb |