Sha256: e2266d520d85f0201f893a414f364f0b376e0344b4112255a9d30677a501569d

Contents?: true

Size: 498 Bytes

Versions: 2

Compression:

Stored size: 498 Bytes

Contents

require 'pdk'

module PDK
  module Context
    # Represents a context which the PDK does not know. For example
    # an empty directory
    class None < PDK::Context::AbstractContext
      #:nocov:
      # @see PDK::Context::AbstractContext.display_name
      def display_name
        'an unknown context'
      end
      #:nocov:

      # @see PDK::Context::AbstractContext.parent_context
      def parent_context
        # An unknown context has no parent
        nil
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pdk-2.7.1 lib/pdk/context/none.rb
pdk-2.7.0 lib/pdk/context/none.rb