Module: Poros::Config
- Included in:
- Poros
- Defined in:
- lib/poros/config.rb
Class Method Summary collapse
Class Method Details
.configuration ⇒ Object
3 4 5 6 7 8 |
# File 'lib/poros/config.rb', line 3 def self.configuration @configuration ||= { permitted_classes: [Symbol], logger: Logger.new($stdout), } end |
.configure {|configuration| ... } ⇒ Object
10 11 12 |
# File 'lib/poros/config.rb', line 10 def self.configure yield(configuration) end |
.logger ⇒ Object
14 15 16 |
# File 'lib/poros/config.rb', line 14 def self.logger configuration[:logger] end |