Method: Vedeu::DSL::Interface#group

Defined in:
lib/vedeu/dsl/interface.rb

#group(name) ⇒ Vedeu::Group

Specify a group for an interface. Interfaces of the same group can be targetted together; for example you may want to refresh multiple interfaces at once.

Examples:

interface 'my_interface' do
  group 'main_screen'
  # ...

Parameters:

  • name (String)

    The name of the group to which this interface should belong.

Returns:



146
147
148
149
150
151
152
# File 'lib/vedeu/dsl/interface.rb', line 146

def group(name)
  return false unless defined_value?(name)

  model.group = name

  Vedeu.groups.by_name(name).add(model.name)
end