Class: Mutant::Zombifier

Inherits:
Object
  • Object
show all
Includes:
AST::Sexp
Defined in:
lib/mutant/zombifier.rb

Overview

Zombifier namespace

Constant Summary collapse

LoadError =
Class.new(::LoadError)

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeundefined

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.

Initialize object

Parameters:

  • namespace (Symbol)


25
26
27
28
29
# File 'lib/mutant/zombifier.rb', line 25

def initialize(*)
  super
  @includes = %r{\A#{Regexp.union(includes)}(?:/.*)?\z}
  @zombified = Set.new
end

Class Method Details

.call(*args) ⇒ 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.

Call zombifier

Returns:

  • (self)


36
37
38
39
# File 'lib/mutant/zombifier.rb', line 36

def self.call(*args)
  new(*args).__send__(:call)
  self
end