# File lib/terminal-table/style.rb, line 69 def on_change attr method_name = "#{attr}=""#{attr}=" old_method = method method_name define_singleton_method(method_name) do |value| old_method.call value yield attr.to_sym, value end end