Class: Mutant::Context

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

Overview

An abstract context where mutations can be appied to.

Direct Known Subclasses

Scope

Defined Under Namespace

Classes: Scope

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#source_pathString (readonly)

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 source path

Returns:

  • (String)


20
21
22
# File 'lib/mutant/context.rb', line 20

def source_path
  @source_path
end

Instance Method Details

#rootRubinis::AST::Script

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 root ast node

Returns:

  • (Rubinis::AST::Script)


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

abstract_method :root