Class: Aservice::Config

Inherits:
Anyway::Config
  • Object
show all
Defined in:
lib/aservice/config.rb

Overview

anyway config wrapper

Class Method Summary collapse

Class Method Details

.instance {|@config| ... } ⇒ Object

Yields:

  • (@config)


14
15
16
17
18
# File 'lib/aservice/config.rb', line 14

def self.instance
  @config ||= new
  yield @config if block_given?
  @config
end

.method_missing(method) ⇒ Object



24
25
26
# File 'lib/aservice/config.rb', line 24

def self.method_missing(method)
  instance.send(method)
end

.respond_to_missing?(_name, _) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/aservice/config.rb', line 20

def self.respond_to_missing?(_name, _)
  instance.respond_to?(method)
end