Module: RelatonBib::Util

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

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missingObject



5
6
7
# File 'lib/relaton_bib/util.rb', line 5

def method_missing(...)
  logger.send(...)
end

Instance Method Details

#loggerObject



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

def logger
  RelatonBib.configuration.logger
end

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

Returns:

  • (Boolean)


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

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