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

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

Overview

Serega::SeregaAttributeNormalizer additional/patched instance methods

Instance Method Summary collapse

Instance Method Details

#preloadsHash?

Returns normalized attribute preloads.

Returns:

  • (Hash, nil)

    normalized attribute preloads



13
14
15
16
17
# File 'lib/serega/plugins/preloads/lib/modules/attribute_normalizer.rb', line 13

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



20
21
22
23
24
# File 'lib/serega/plugins/preloads/lib/modules/attribute_normalizer.rb', line 20

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

  @preloads_path = prepare_preloads_path
end