Sha256: f227865bfa4a2627907c3abf67a3e6dc84b4cf8b2055a1a46371e66ececdf87d
Contents?: true
Size: 490 Bytes
Versions: 25
Compression:
Stored size: 490 Bytes
Contents
require "dry-initializer" class Avo::Menu::BaseItem extend Dry::Initializer option :collapsable, default: proc { false } option :collapsed, default: proc { false } option :icon, optional: true option :items, default: proc { [] } option :name, default: proc { "" } option :visible, default: proc { true } def visible? return visible if visible.in? [true, false] if visible.respond_to? :call Avo::Hosts::BaseHost.new(block: visible).handle end end end
Version data entries
25 entries across 25 versions & 1 rubygems