Method: Laze::Layout.find

Defined in:
lib/laze/layout.rb

.find(layout_name) ⇒ Object

Use the currently active data store to look for a layout by a given name. Returns nil when given nil, and a new layout instance otherwise.



100
101
102
103
# File 'lib/laze/layout.rb', line 100

def self.find(layout_name)
  return unless layout_name
  Secretary.current.store.find_layout(layout_name)
end