Sha256: 993f416e4c3d1dc22fe12ad3bbfa09b4e915c43c348c95867311bd2ecc454c9d

Contents?: true

Size: 687 Bytes

Versions: 2

Compression:

Stored size: 687 Bytes

Contents

module Vedeu
  module API

    # Provides a set of helpful API methods to return information about various
    # registered subsystems.
    #
    # @api public
    module Defined

      extend self

      # Returns all events currently registered with Vedeu.
      #
      # @return [Array]
      def events
        Vedeu.events.registered
      end

      # Returns all groups currently registered with Vedeu.
      #
      # @return [Array]
      def groups
        Vedeu::Groups.registered
      end

      # Returns all interfaces currently registered with Vedeu.
      #
      # @return [Array]
      def interfaces
        Vedeu::Interfaces.registered
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.2.0 lib/vedeu/api/defined.rb
vedeu-0.1.19 lib/vedeu/api/defined.rb