module Card::View::Options::KeyLists
lists of view option keys
Public Instance Methods
Source
# File lib/card/view/options/key_lists.rb, line 26 def accessible_keys all_keys - [ # (all but the following) :view, # view is accessed as requested_view or ok_view and cannot be # directly manipulated :show, :hide # these have a more extensive API (see Card::View::Visibility) ] end
Keys that can be read or written via accessors @return [Array]
Source
# File lib/card/view/options/key_lists.rb, line 8 def all_keys @all_keys ||= keymap.each_with_object([]) { |(_k, v), a| a.push(*v) } end
all standard option keys @return [Array]
Source
# File lib/card/view/options/key_lists.rb, line 20 def heir_keys @heir_keys ||= ::Set.new(keymap[:both]) + keymap[:heir] end
keys that follow simple standard inheritance pattern from parent views @return [Array]
Source
# File lib/card/view/options/key_lists.rb, line 38 def reset_key_lists @all_keys = nil @shark_keys = nil @heir_keys = nil end
Source
# File lib/card/view/options/key_lists.rb, line 14 def shark_keys @shark_keys ||= ::Set.new(keymap[:both]) + keymap[:shark] end
keys whose values can be set by Sharks in card nests @return [Array]
Source
# File lib/card/view/options/key_lists.rb, line 34 def slot_keys @slot_keys ||= all_keys - [:skip_perms] end