Le raffinement Ruby comprend le module

module SomeModule
  def new_method
    puts 'its me, the new method!'
  end
end

module SomeRefinement
  refine String do
    import_methods SomeModule
  end
end

using SomeRefinement
string = ""
string.new_method #=> its me, the new method!
Mateusz Drewniak