Module: Lookbook::PreviewHelper
- Defined in:
- lib/lookbook/helpers/preview_helper.rb
Overview
Set of helpers for preview layouts
Instance Method Summary collapse
Instance Method Details
#lookbook_data(key, fallback = nil) ⇒ Object
10 11 12 |
# File 'lib/lookbook/helpers/preview_helper.rb', line 10 def lookbook_data(key, fallback = nil) Lookbook.data.fetch(key.to_sym, fallback) end |
#lookbook_display(key, fallback = nil) ⇒ Object
6 7 8 |
# File 'lib/lookbook/helpers/preview_helper.rb', line 6 def lookbook_display(key, fallback = nil) params.dig(:lookbook, :display, key.to_sym) || fallback end |