Module: Card::View::Options

Extended by:
KeyLists
Includes:
VooApi
Included in:
Card::View
Defined in:
lib/card/view/options.rb,
lib/card/view/options/voo_api.rb,
lib/card/view/options/key_lists.rb

Overview

Manages options for card views, including those used in nest syntax

Defined Under Namespace

Modules: KeyLists, VooApi

Class Attribute Summary collapse

Attributes included from VooApi

#normalized_options

Class Method Summary collapse

Methods included from KeyLists

accessible_keys, all_keys, heir_keys, reset_key_lists, ruler_keys

Methods included from VooApi

define_getter, define_setter, included, #items, #normalize_cache, #normalize_editor, #slot_options

Class Attribute Details

.keymapObject (readonly)

Returns the value of attribute keymap.



57
58
59
# File 'lib/card/view/options.rb', line 57

def keymap
  @keymap
end

Class Method Details

.add_option(name, type) ⇒ Object



59
60
61
62
63
# File 'lib/card/view/options.rb', line 59

def add_option name, type
  raise "invalid option type" unless @keymap.key?(type)
  @keymap[type] << name
  reset_key_lists
end