"#{self.class}: #{hard_config}" end def config @config_for_debug end end p Framework.new.config #=> '' class Application < Framework def initialize trace = TracePoint.trace(:line) do |tp| tp.binding.local_variable_set(:hard_config, '') end super trace.disable end end Specify the event to evaluate the expression with `trace(:line)`
"#{self.class}: #{hard_config}" end def config @config_for_debug end end p Framework.new.config #=> '' class Application < Framework def initialize trace = TracePoint.trace(:line) do |tp| tp.binding.local_variable_set(:hard_config, '') end super trace.disable end end 4QFDJGZMWBSAIBSE@DPOpHA
"#{self.class}: #{hard_config}" end def config @config_for_debug end end p Framework.new.config #=> '' class Application < Framework def initialize trace = TracePoint.trace(:line) do |tp| tp.binding.local_variable_set(:hard_config, '') end super trace.disable end end p Application.new.config #=> '' 4QFDJGZMWBSAIBSE@DPOpHA
"#{self.class}: #{hard_config}" end def config @config_for_debug end end p Framework.new.config #=> '' class Application < Framework def initialize trace = TracePoint.trace(:line) do |tp| tp.binding.local_variable_set(:hard_config, '') end super trace.disable end end p Application.new.config #=> '' p Framework.new.config #=> '' 4QFDJGZMWBSAIBSE@DPOpHA