Sha256: 9cc7c50e636e0fcdc37e1b148c2e4b2d7a8169660c0102816302f241d07df64b

Contents?: true

Size: 1 KB

Versions: 3

Compression:

Stored size: 1 KB

Contents

# frozen_string_literal: true

module Vedeu

  module Cursors

    # Allows the storing of each interface's cursor.
    #
    class Repository < Vedeu::Repositories::Repository

      singleton_class.send(:alias_method, :cursors, :repository)

      class << self

        # {include:file:docs/dsl/by_method/cursor.md}
        # @return [NilClass|Vedeu::Cursors::Cursor]
        def cursor
          cursors.by_name
        end

      end # Eigenclass

      null Vedeu::Cursors::Cursor
      real Vedeu::Cursors::Cursor

    end # Repository

    class Cursor

      repo Vedeu::Cursors::Repository.repository

    end # Cursor

  end # Cursors

  # {include:file:docs/dsl/by_method/cursors.md}
  # @!method cursors
  #   @return [Vedeu::Cursors::Repository]
  def_delegators Vedeu::Cursors::Repository,
                 :cursors

  # {include:file:docs/dsl/by_method/cursor.md}
  # @!method cursor
  #   @see Vedeu::Cursors::Repository.cursor
  def_delegators Vedeu::Cursors::Repository,
                 :cursor

end # Vedeu

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vedeu-0.8.10 lib/vedeu/cursors/repository.rb
vedeu-0.8.9 lib/vedeu/cursors/repository.rb
vedeu-0.8.8 lib/vedeu/cursors/repository.rb