Class: PDK::Context::None

Inherits:
AbstractContext show all
Defined in:
lib/pdk/context/none.rb

Overview

Represents a context which the PDK does not know. For example an empty directory

Instance Attribute Summary

Attributes inherited from AbstractContext

#context_path

Instance Method Summary collapse

Methods inherited from AbstractContext

#initialize, #pdk_compatible?, #root_path, #to_debug_log, #to_s

Constructor Details

This class inherits a constructor from PDK::Context::AbstractContext

Instance Method Details

#display_nameObject

:nocov:

See Also:

  • AbstractContext.display_name


10
11
12
# File 'lib/pdk/context/none.rb', line 10

def display_name
  'an unknown context'
end

#parent_contextObject

See Also:

  • AbstractContext.parent_context


16
17
18
19
# File 'lib/pdk/context/none.rb', line 16

def parent_context
  # An unknown context has no parent
  nil
end