free_mutant/lib/mutant/context.rb
Markus Schirp 001f3c7d99 Make mutant run under MRI 1.9.
* Add a Mutant::Loader::Eval that loads code via Kernel#eval
* Move Mutnat::Loader to Mutant::Loader::Rubinius (currently not used)
2012-11-21 20:31:01 +01:00

36 lines
598 B
Ruby

module Mutant
# An abstract context where mutations can be appied to.
class Context
include Adamantium::Flat, AbstractClass
# Return root ast node
#
# @return [Rubinis::AST::Script]
#
# @api private
#
abstract_method :root
# Return source path
#
# @return [String]
#
# @api private
#
attr_reader :source_path
private
# Initialize context
#
# @param [String] source_path
#
# @return [undefined]
#
# @api private
#
def initialize(source_path)
@source_path = source_path
end
end
end