Class: BasicObject
- Defined in:
- lib/live_ast/replace_eval.rb
Overview
Override for BasicObject#instance_eval
Instance Method Summary collapse
-
#instance_eval(*args, &block) ⇒ Object
Arity must be handled in code because the first argument is only required if no block is passed.
- #live_ast_original_instance_eval ⇒ Object
Instance Method Details
#instance_eval(*args, &block) ⇒ Object
Arity must be handled in code because the first argument is only required if no block is passed.
79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/live_ast/replace_eval.rb', line 79 def instance_eval(*args, &block) if block live_ast_original_instance_eval(*args, &block) else ::LiveAST::ReplaceEval .module_or_instance_eval(:instance, self, ::Binding.of_caller(1), args) end end |
#live_ast_original_instance_eval ⇒ Object
75 |
# File 'lib/live_ast/replace_eval.rb', line 75 alias live_ast_original_instance_eval instance_eval |