Module: Serega::SeregaPlugins::Preloads::AttributeMethods

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

Overview

Adds #preloads and #preloads_path Attribute instance method

Instance Method Summary collapse

Instance Method Details

#hideObject



107
108
109
110
111
112
# File 'lib/serega/plugins/preloads/preloads.rb', line 107

def hide
  res = super
  return res unless res.nil?

  auto_hide_attribute_with_preloads? || nil
end

#preloadsObject



95
96
97
98
99
# File 'lib/serega/plugins/preloads/preloads.rb', line 95

def preloads
  return @preloads if defined?(@preloads)

  @preloads = get_preloads
end

#preloads_pathObject



101
102
103
104
105
# File 'lib/serega/plugins/preloads/preloads.rb', line 101

def preloads_path
  return @preloads_path if defined?(@preloads_path)

  @preloads_path = get_preloads_path
end