Class: Mutant::Loader Private
- Inherits:
-
Object
- Object
- Mutant::Loader
- Defined in:
- lib/mutant/loader.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Base class for code loaders
Class Method Summary collapse
-
.call(*arguments) ⇒ self
private
Call loader.
Instance Method Summary collapse
-
#call ⇒ undefined
private
Call loader.
Class Method Details
.call(*arguments) ⇒ 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 loader
11 12 13 |
# File 'lib/mutant/loader.rb', line 11 def self.call(*arguments) new(*arguments).call end |
Instance Method Details
#call ⇒ undefined
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 loader
One off the very few valid uses of eval
20 21 22 23 24 25 26 27 |
# File 'lib/mutant/loader.rb', line 20 def call kernel.eval( Unparser.unparse(node), binding, subject.source_path.to_s, subject.source_line ) end |