Class: Vedeu::Output::Refresh

Inherits:
Object
  • Object
show all
Defined in:
lib/vedeu/output/refresh/refresh.rb

Overview

See Also:

  • Bindings::System#refresh!

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeVedeu::Output::Refresh

Return a new instance of Vedeu::Output::Refresh.



16
# File 'lib/vedeu/output/refresh/refresh.rb', line 16

def initialize; end

Class Method Details

.allObject

See Also:



9
10
11
# File 'lib/vedeu/output/refresh/refresh.rb', line 9

def self.all
  new.all
end

Instance Method Details

#allArray<Vedeu::Interfaces::Interface>

Refresh all registered interfaces.

Returns:



21
22
23
24
25
26
27
# File 'lib/vedeu/output/refresh/refresh.rb', line 21

def all
  Vedeu.timer('Refreshing all'.freeze) do
    Vedeu.interfaces.zindexed.each do |interface|
      Vedeu.trigger(:_refresh_view_, interface.name)
    end
  end
end