Sha256: bf47a23413b89978d071d5796c52d9dc7e5578c76aeadd68cbc88f8fd457e38f

Contents?: true

Size: 724 Bytes

Versions: 6

Compression:

Stored size: 724 Bytes

Contents

module Vedeu

  module Output

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

      # Refresh all registered interfaces.
      #
      # @return [Array<Vedeu::Models::Interface>]
      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_, interface.name)
          end
        end
      end

    end # Refresh

  end # Output

end # Vedeu

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vedeu-0.6.16 lib/vedeu/output/refresh/refresh.rb
vedeu-0.6.15 lib/vedeu/output/refresh/refresh.rb
vedeu-0.6.14 lib/vedeu/output/refresh/refresh.rb
vedeu-0.6.13 lib/vedeu/output/refresh/refresh.rb
vedeu-0.6.12 lib/vedeu/output/refresh/refresh.rb
vedeu-0.6.11 lib/vedeu/output/refresh/refresh.rb