Class: Vedeu::Buffers::Refresh Private
- Inherits:
-
Object
- Object
- Vedeu::Buffers::Refresh
- Includes:
- Common
- Defined in:
- lib/vedeu/buffers/refresh.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.
Refreshes the given named interface.
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
Instance Method Summary collapse
-
#buffer ⇒ Vedeu::Buffers::Buffer
private
private
Returns the named buffer from the buffer repository.
- #by_name ⇒ Array|Vedeu::Error::ModelNotFound private
-
#initialize(name = Vedeu.focus) ⇒ Vedeu::Buffers::Refresh
constructor
private
Return a new instance of Vedeu::Buffers::Refresh.
Methods included from Common
#absent?, #array?, #boolean, #boolean?, #empty_value?, #escape?, #falsy?, #hash?, #line_model?, #numeric?, #positionable?, #present?, #snake_case, #stream_model?, #string?, #symbol?, #truthy?, #view_model?
Constructor Details
#initialize(name = Vedeu.focus) ⇒ Vedeu::Buffers::Refresh
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::Buffers::Refresh.
26 27 28 |
# File 'lib/vedeu/buffers/refresh.rb', line 26 def initialize(name = Vedeu.focus) @name = name || Vedeu.focus 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/buffers/refresh.rb', line 43 def name @name end |
Class Method Details
.by_name(name = Vedeu.focus) ⇒ Array|Vedeu::Error::ModelNotFound
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.
18 19 20 |
# File 'lib/vedeu/buffers/refresh.rb', line 18 def self.by_name(name = Vedeu.focus) new(name).by_name end |
Instance Method Details
#buffer ⇒ Vedeu::Buffers::Buffer (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 the named buffer from the buffer repository.
48 49 50 |
# File 'lib/vedeu/buffers/refresh.rb', line 48 def buffer Vedeu.buffers.by_name(name) end |
#by_name ⇒ Array|Vedeu::Error::ModelNotFound
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.
31 32 33 34 35 36 37 |
# File 'lib/vedeu/buffers/refresh.rb', line 31 def by_name Vedeu.clear_content_by_name(name) buffer.render Vedeu.trigger(:_refresh_border_, name) end |