Sha256: be8871118a2704840905c48a18e32920c093414fdf5527db9e14666f6b3865a0
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
module Lookbook module Navigable extend ActiveSupport::Concern included do def hidden? fetch_config(:hidden, false) end def visible? !hidden? end def position if @position_prefixes && respond_to?(:file_name) PositionPrefixParser.call(file_name).first || 10000 else fetch_config(:position, 10000) end end def depth path.split("/").size end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lookbook-1.4.0 | lib/lookbook/entities/concerns/navigable.rb |