module Augmented::Modules::Refined
Public Instance Methods
refined(klass, **hash_of_procs)
click to toggle source
# File lib/augmented/modules/refined.rb, line 6 def refined klass, **hash_of_procs Module.new do refine klass do hash_of_procs.each_pair do |name, proc| define_method name, proc end end end end