Class: Mutant::Env

Inherits:
Object
  • Object
show all
Includes:
AbstractType, Adamantium
Defined in:
lib/mutant/env.rb

Overview

Abstract base class for mutant environments

Direct Known Subclasses

Boot

Defined Under Namespace

Classes: Boot

Instance Method Summary collapse

Instance Method Details

#cacheCache

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return cache

Returns:



20
# File 'lib/mutant/env.rb', line 20

abstract_method :cache

#configConfig

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return config

Returns:



12
# File 'lib/mutant/env.rb', line 12

abstract_method :config

#reporterReporter

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return reporter

Returns:



28
# File 'lib/mutant/env.rb', line 28

abstract_method :reporter

#warn(message) ⇒ self

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Print warning message

Parameters:

  • (String)

Returns:

  • (self)


38
39
40
41
# File 'lib/mutant/env.rb', line 38

def warn(message)
  reporter.warn(message)
  self
end