Sha256: 03e71292c6ae5caec735dadc8fffaff68ddabf7f02374c35272c1d74cbfdf936

Contents?: true

Size: 370 Bytes

Versions: 4

Compression:

Stored size: 370 Bytes

Contents

module Degica
  class Object
    include Actionable
    include Collectable

    def initialize(objects = [])
      @objects = ObjectCollection.new(objects)
    end

    def actions
      @objects.actions
    end

    def name
      raise NotImplementedError
    end

    def describe
      raise NotImplementedError
    end

    def prompt
      name
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
degica-1.0.3 lib/degica/object.rb
degica-1.0.2 lib/degica/object.rb
degica-1.0.1 lib/degica/object.rb
degica-1.0.0 lib/degica/object.rb