Sha256: 85937ad4654af1a4573c8b8b981142992f8de7844d46c25f65a7058585a484eb

Contents?: true

Size: 1.43 KB

Versions: 8

Compression:

Stored size: 1.43 KB

Contents

# Author::    Eric Crane  (mailto:eric.crane@mac.com)
# Copyright:: Copyright (c) 2019 Eric Crane.  All rights reserved.
#
# An Untyped Object.
#

module Gloo
  module Objs
    class Untyped < Gloo::Core::Obj

      KEYWORD = 'untyped'.freeze
      KEYWORD_SHORT = 'un'.freeze

      #
      # The name of the object type.
      #
      def self.typename
        return KEYWORD
      end

      #
      # The short name of the object type.
      #
      def self.short_typename
        return KEYWORD_SHORT
      end

      # ---------------------------------------------------------------------
      #    Messages
      # ---------------------------------------------------------------------

      #
      # Get a list of message names that this object receives.
      #
      def self.messages
        return super # + [ "run" ]
      end

      # ---------------------------------------------------------------------
      #    Help
      # ---------------------------------------------------------------------

      #
      # Get help for this object type.
      #
      def self.help
        return <<~TEXT
          UNTYPED OBJECT TYPE
            NAME: untyped
            SHORTCUT: un

          DESCRIPTION
            An untyped object.
            If no type is specified when an object is created it
            will be of this type.

          CHILDREN
            None

          MESSAGES
            None
        TEXT
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gloo-0.6.1 lib/gloo/objs/basic/untyped.rb
gloo-0.6.0 lib/gloo/objs/basic/untyped.rb
gloo-0.5.4 lib/gloo/objs/basic/untyped.rb
gloo-0.5.3 lib/gloo/objs/basic/untyped.rb
gloo-0.5.2 lib/gloo/objs/basic/untyped.rb
gloo-0.5.1 lib/gloo/objs/basic/untyped.rb
gloo-0.5.0 lib/gloo/objs/basic/untyped.rb
gloo-0.4.0 lib/gloo/objs/basic/untyped.rb