Method: Lookbook::Collection#find_parent
- Defined in:
- lib/lookbook/collection.rb
#find_parent(child) ⇒ Object
90 91 92 93 |
# File 'lib/lookbook/collection.rb', line 90 def find_parent(child) parent_path = child.lookup_path.split("/").pop.join("/") find_by_path(parent_path) end |