Sha256: 2df977241c1d1ef23f9afb4d3438f6d936f6ca639250aaae41ae4e120a992944
Contents?: true
Size: 763 Bytes
Versions: 1
Compression:
Stored size: 763 Bytes
Contents
module Vedeu # Allows the storing of each interface's cursor. # # @api public class Cursors < Repository class << self # @return [Vedeu::Cursors] alias_method :cursors, :repository # @return [Vedeu::Cursor] def cursor cursors.by_name(Vedeu.focus) if Vedeu.focus end # Remove all stored models from the repository. # # @return [Vedeu::Cursors] def reset! @cursors = register(Vedeu::Cursor) end end # @param name [String] The name of the stored cursor. # @return [Vedeu::Cursor] def by_name(name) if registered?(name) find(name) elsif name Vedeu::Cursor.new(name: name).store end end end # Cursors end # Vedeu
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.4.33 | lib/vedeu/repositories/repositories/cursors.rb |