Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/live_ast/replace_eval.rb
Overview
Overrides for Module#module_eval and Module#class_eval
Instance Method Summary collapse
- #live_ast_original_module_eval ⇒ Object
- #module_eval(*args, &block) ⇒ Object (also: #class_eval)
Instance Method Details
#live_ast_original_module_eval ⇒ Object
92 |
# File 'lib/live_ast/replace_eval.rb', line 92 alias live_ast_original_module_eval module_eval |
#module_eval(*args, &block) ⇒ Object Also known as: class_eval
94 95 96 97 98 99 100 101 |
# File 'lib/live_ast/replace_eval.rb', line 94 def module_eval(*args, &block) if block live_ast_original_module_eval(*args, &block) else LiveAST::ReplaceEval. module_or_instance_eval(:module, self, binding.of_caller(1), args) end end |