Class: Vedeu::Groups::Clear Private

Inherits:
Object
  • Object
show all
Defined in:
lib/vedeu/groups/clear.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Clear the interfaces belonging to the named group.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Vedeu::Groups::Clear

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return a new instance of Vedeu::Groups::Clear.

Parameters:

  • name (NilClass|Symbol|String)

    The name of the model or target model to act upon. May default to ‘Vedeu.focus`.



30
31
32
# File 'lib/vedeu/groups/clear.rb', line 30

def initialize(name)
  @name = name
end

Instance Attribute Details

#nameNilClass|Symbol|String (readonly, protected)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns The name of the model, the target model or the name of the associated model.

Returns:

  • (NilClass|Symbol|String)

    The name of the model, the target model or the name of the associated model.



43
44
45
# File 'lib/vedeu/groups/clear.rb', line 43

def name
  @name
end

Class Method Details

.by_groupvoid

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Parameters:

  • name (NilClass|Symbol|String)

    The name of the model or target model to act upon. May default to ‘Vedeu.focus`.



22
23
24
# File 'lib/vedeu/groups/clear.rb', line 22

def render(name)
  new(name).render
end

.clear_by_groupvoid

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Parameters:

  • name (NilClass|Symbol|String)

    The name of the model or target model to act upon. May default to ‘Vedeu.focus`.



21
22
23
# File 'lib/vedeu/groups/clear.rb', line 21

def render(name)
  new(name).render
end

.render(name) ⇒ void

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.

Parameters:

  • name (NilClass|Symbol|String)

    The name of the model or target model to act upon. May default to ‘Vedeu.focus`.



18
19
20
# File 'lib/vedeu/groups/clear.rb', line 18

def render(name)
  new(name).render
end

Instance Method Details

#groupVedeu::Groups::Group (private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



48
49
50
# File 'lib/vedeu/groups/clear.rb', line 48

def group
  Vedeu.groups.by_name(name)
end

#membersArray<String> (private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Array<String>)


53
54
55
# File 'lib/vedeu/groups/clear.rb', line 53

def members
  group.members
end

#rendervoid

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method returns an undefined value.



35
36
37
# File 'lib/vedeu/groups/clear.rb', line 35

def render
  members.each { |name| Vedeu.trigger(:_clear_view_, name) }
end