Sha256: 903eaad99d9306e175a0ebadd289e0351f1ad0b19c5e098102ddd22ce104dfd2
Contents?: true
Size: 1.08 KB
Versions: 5
Compression:
Stored size: 1.08 KB
Contents
module Vedeu # Refreshes the given named interface. # # @example # Vedeu.trigger(:_refresh_, name) # class RefreshBuffer include Vedeu::Common # @param name [String] The name of the interface to be refreshed using the # named buffer. # @return [Array|Vedeu::ModelNotFound] def self.by_name(name) new(name).by_name end # Return a new instance of Vedeu::RefreshBuffer. # # @param name [String] # @return [Vedeu::RefreshBuffer] def initialize(name) @name = name end # @return [void] def by_name Vedeu.timer("Refresh Buffer: '#{buffer_name}'") do Vedeu.buffers.by_name(buffer_name).render end end protected # # @!attribute [r] name # @return [String] attr_reader :name private # @raise [Vedeu::MissingRequired] When the name is empty or nil. # @return [String] def buffer_name return name if present?(name) fail Vedeu::MissingRequired, 'Cannot refresh interface with an empty interface name.' end end # RefreshBuffer end # Vedeu
Version data entries
5 entries across 5 versions & 1 rubygems