Class: Vedeu::Groups::Clear Private
- Inherits:
-
Object
- Object
- Vedeu::Groups::Clear
- 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
-
#name ⇒ NilClass|Symbol|String
readonly
protected
private
The name of the model, the target model or the name of the associated model.
Class Method Summary collapse
-
.by_group ⇒ void
private
-
.clear_by_group ⇒ void
private
-
.render(name) ⇒ void
private
Instance Method Summary collapse
- #group ⇒ Vedeu::Groups::Group private private
-
#initialize(name) ⇒ Vedeu::Groups::Clear
constructor
private
Return a new instance of Vedeu::Groups::Clear.
- #members ⇒ Array<String> private private
- #render ⇒ void private
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.
30 31 32 |
# File 'lib/vedeu/groups/clear.rb', line 30 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ NilClass|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.
43 44 45 |
# File 'lib/vedeu/groups/clear.rb', line 43 def name @name end |
Class Method Details
.by_group ⇒ 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.
22 23 24 |
# File 'lib/vedeu/groups/clear.rb', line 22 def render(name) new(name).render end |
.clear_by_group ⇒ 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.
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.
18 19 20 |
# File 'lib/vedeu/groups/clear.rb', line 18 def render(name) new(name).render end |
Instance Method Details
#group ⇒ Vedeu::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 |
#members ⇒ Array<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.
53 54 55 |
# File 'lib/vedeu/groups/clear.rb', line 53 def members group.members end |
#render ⇒ 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.
35 36 37 |
# File 'lib/vedeu/groups/clear.rb', line 35 def render members.each { |name| Vedeu.trigger(:_clear_view_, name) } end |