Module: DNApi::ComponentPossessor::Ext

Defined in:
lib/dnapi/component_possessor.rb

Instance Method Summary collapse

Instance Method Details

#component_group(name, *keys) ⇒ Object



11
12
13
14
15
16
# File 'lib/dnapi/component_possessor.rb', line 11

def component_group(name, *keys)
  define_method(name.to_sym) do
    component_group(name)
  end
  component_group_map[name.to_sym] = keys
end

#component_group_mapObject



7
8
9
# File 'lib/dnapi/component_possessor.rb', line 7

def component_group_map
  @component_group_map ||= {}
end