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
9 10 11 |
# File 'lib/mutant/loader.rb', line 9 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
18 19 20 21 22 23 24 25 |
# File 'lib/mutant/loader.rb', line 18 def call kernel.eval( Unparser.unparse(node), binding, subject.source_path.to_s, subject.source_line ) end |