Sha256: 7a8e5a5bcd052a6da8ae97ca9d2364fd11760cd1453e2164305fcc0d29090fe0
Contents?: true
Size: 471 Bytes
Versions: 7
Compression:
Stored size: 471 Bytes
Contents
module Loaf # A container for breadcrumb values # @api public class Breadcrumb attr_reader :name attr_reader :path alias url path def self.[](*args) new(*args) end def initialize(name, path, current) @name = name @path = path @current = current freeze end def current? @current end def to_ary [@name, @path, @current] end alias to_a to_ary end # Breadcrumb end # Loaf
Version data entries
7 entries across 7 versions & 1 rubygems