Sha256: 0bd99108077556f69fe7e348a09f0cd5ae2627eb30125b6d69186065b52bc159

Contents?: true

Size: 653 Bytes

Versions: 3

Compression:

Stored size: 653 Bytes

Contents

module Vedeu

  module Output

    # @see Vedeu::Bindings::System#refresh!
    class Refresh

      # @see #all
      def self.all
        new.all
      end

      # Return a new instance of Vedeu::Output::Refresh.
      #
      # @return [Vedeu::Output::Refresh]
      def initialize; end

      # Refresh all registered interfaces.
      #
      # @return [Array<Vedeu::Models::Interface>]
      def all
        Vedeu.timer('Refreshing all'.freeze) do
          Vedeu.interfaces.zindexed.each do |interface|
            Vedeu.trigger(:_refresh_view_, interface.name)
          end
        end
      end

    end # Refresh

  end # Output

end # Vedeu

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vedeu-0.6.28 lib/vedeu/output/refresh/refresh.rb
vedeu-0.6.27 lib/vedeu/output/refresh/refresh.rb
vedeu-0.6.26 lib/vedeu/output/refresh/refresh.rb