Module: Serega::SeregaPlugins::Preloads::AttributeNormalizerInstanceMethods

Defined in:
lib/serega/plugins/preloads/preloads.rb

Overview

SeregaAttributeNormalizer additional/patched instance methods

See Also:

  • SeregaAttributeNormalizer::AttributeInstanceMethods

Instance Method Summary collapse

Instance Method Details

#preloadsHash?

Returns normalized attribute preloads.

Returns:

  • (Hash, nil)

    normalized attribute preloads



224
225
226
227
228
# File 'lib/serega/plugins/preloads/preloads.rb', line 224

def preloads
  return @preloads if instance_variable_defined?(:@preloads)

  @preloads = prepare_preloads
end

#preloads_pathArray?

Returns normalized attribute preloads path.

Returns:

  • (Array, nil)

    normalized attribute preloads path



231
232
233
234
235
# File 'lib/serega/plugins/preloads/preloads.rb', line 231

def preloads_path
  return @preloads_path if instance_variable_defined?(:@preloads_path)

  @preloads_path = prepare_preloads_path
end