module RubyNext::Language::ClassEval
Public Instance Methods
class_eval(*args, &block)
click to toggle source
Calls superclass method
# File lib/ruby-next/language/eval.rb, line 44 def class_eval(*args, &block) return super(*args, &block) if block source = args.shift new_source = ::RubyNext::Language::Runtime.transform(source, using: false) RubyNext.debug_source(new_source, "(#{caller_locations(1, 1).first})") super new_source, *args end
module_eval(*args, &block)
click to toggle source
Calls superclass method
# File lib/ruby-next/language/eval.rb, line 35 def module_eval(*args, &block) return super(*args, &block) if block source = args.shift new_source = ::RubyNext::Language::Runtime.transform(source, using: false) RubyNext.debug_source(new_source, "(#{caller_locations(1, 1).first})") super new_source, *args end