Module: Relaton::Index::Util

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

Constant Summary collapse

PROGNAME =
"relaton-index".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



8
9
10
11
# File 'lib/relaton/index/util.rb', line 8

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)


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

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