Module: RelatonBib::Util

Extended by:
Util
Included in:
Util
Defined in:
lib/relaton_bib/util.rb

Constant Summary collapse

PROGNAME =
"relaton-bib".freeze

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, msg = nil, prog = nil, **opts, &block) ⇒ Object



7
8
9
10
# File 'lib/relaton_bib/util.rb', line 7

def method_missing(method_name, msg = nil, prog = nil, **opts, &block)
  prog ||= self::PROGNAME
  Relaton.logger_pool.send method_name, msg, prog, **opts, &block
end

Instance Method Details

#respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/relaton_bib/util.rb', line 12

def respond_to_missing?(method_name, include_private = false)
  Relaton.logger_pool.respond_to?(method_name) || super
end