I would like to pass an argument(s) to a method being defined using define_method, how would I do that?
With 2.2 you can now use keyword arguments: https://robots.thoughtbot.com/ruby-2-keyword-arguments
define_method(:method) do |refresh: false| .......... end