This doesn't do what you intend.  This line is creating a local variable named `backtrace_exclude_patterns` and assigning it to `patterns`.  It is not calling the `#backtrace_exclude_patterns=` method as you intend.  You have to use `self.attr = ` to set attributes; w/o a receiver, ruby treats it as a local variable.