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
#hide ⇒ Object
68 69 70 71 72 73 |
# File 'lib/serega/plugins/preloads/preloads.rb', line 68 def hide res = super return res unless res.nil? auto_hide_attribute_with_preloads? || nil end |
#preloads ⇒ Object
56 57 58 59 60 |
# File 'lib/serega/plugins/preloads/preloads.rb', line 56 def preloads return @preloads if defined?(@preloads) @preloads = get_preloads end |
#preloads_path ⇒ Object
62 63 64 65 66 |
# File 'lib/serega/plugins/preloads/preloads.rb', line 62 def preloads_path return @preloads_path if defined?(@preloads_path) @preloads_path = get_preloads_path end |