Class: Dugway::Drops::ThemeImagesDrop
- Defined in:
- lib/dugway/liquid/drops/theme_images_drop.rb
Instance Attribute Summary
Attributes inherited from BaseDrop
Instance Method Summary collapse
Methods inherited from BaseDrop
#cart, #context=, #error, #errors, #initialize, #method_missing, #store, #theme
Constructor Details
This class inherits a constructor from Dugway::Drops::BaseDrop
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Dugway::Drops::BaseDrop
Instance Method Details
#before_method(method_or_key) ⇒ Object
4 5 6 7 8 |
# File 'lib/dugway/liquid/drops/theme_images_drop.rb', line 4 def before_method(method_or_key) if source.respond_to?('has_key?') && source.has_key?(method_or_key) && settings_images.find { |image| image['variable'] == method_or_key.to_s } ImageDrop.new(source[method_or_key].stringify_keys) end end |