class Lookbook::Entity
def hidden?
def hidden? false end
def hierarchy_depth
def hierarchy_depth @refpath.present? ? @refpath.split("/").size : 0 end
def id
def id generate_id(lookup_path) end
def initialize(reference_path)
def initialize(reference_path) @refpath = reference_path end
def label
def label lookup_path.split("/").last.titleize end
def lookup_path
def lookup_path @lookup_path ||= to_lookup_path(@refpath) end
def matchers
def matchers nil end
def path
def path @refpath end
def position
def position 0 end
def type
def type :item end