Sha256: 3d7e0daf96b833af88583b9dc71ab8fd9c1c8968ed0b6943170309e6e9c76af8

Contents?: true

Size: 646 Bytes

Versions: 5

Compression:

Stored size: 646 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') 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

5 entries across 5 versions & 1 rubygems

Version Path
vedeu-0.6.25 lib/vedeu/output/refresh/refresh.rb
vedeu-0.6.24 lib/vedeu/output/refresh/refresh.rb
vedeu-0.6.23 lib/vedeu/output/refresh/refresh.rb
vedeu-0.6.22 lib/vedeu/output/refresh/refresh.rb
vedeu-0.6.21 lib/vedeu/output/refresh/refresh.rb