Sha256: f09111d6068ae922a1c86643dec998868f34131e71243e8321f5163764b107e1

Contents?: true

Size: 613 Bytes

Versions: 12

Compression:

Stored size: 613 Bytes

Contents

module Vedeu

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

    # Refresh all registered interfaces.
    #
    # @return [Array<Vedeu::Interface>]
    def self.all
      new.all
    end

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

    # Refresh all registered interfaces.
    #
    # @return [Array<Vedeu::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 # Vedeu

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vedeu-0.6.8 lib/vedeu/refresh/refresh.rb
vedeu-0.6.7 lib/vedeu/refresh/refresh.rb
vedeu-0.6.6 lib/vedeu/refresh/refresh.rb
vedeu-0.6.5 lib/vedeu/refresh/refresh.rb
vedeu-0.6.4 lib/vedeu/refresh/refresh.rb
vedeu-0.6.3 lib/vedeu/refresh/refresh.rb
vedeu-0.6.2 lib/vedeu/refresh/refresh.rb
vedeu-0.6.1 lib/vedeu/refresh/refresh.rb
vedeu-0.6.0 lib/vedeu/refresh/refresh.rb
vedeu-0.5.13 lib/vedeu/refresh/refresh.rb
vedeu-0.5.12 lib/vedeu/refresh/refresh.rb
vedeu-0.5.11 lib/vedeu/refresh/refresh.rb