Class: Leafy::Logger::Factory::HashSourceProvider
- Inherits:
-
Object
- Object
- Leafy::Logger::Factory::HashSourceProvider
- Includes:
- Java::IoDropwizardConfiguration::ConfigurationSourceProvider
- Defined in:
- lib/leafy/logger/factory.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ HashSourceProvider
constructor
A new instance of HashSourceProvider.
- #open(path) ⇒ Object
Constructor Details
#initialize(config) ⇒ HashSourceProvider
Returns a new instance of HashSourceProvider.
15 16 17 |
# File 'lib/leafy/logger/factory.rb', line 15 def initialize( config ) @config = config end |
Instance Method Details
#open(path) ⇒ Object
19 20 21 |
# File 'lib/leafy/logger/factory.rb', line 19 def open(path) StringIO.new( @config.to_yaml ).to_inputstream end |