require_relative "../lib/procemon.rb" class TestT def self.test puts self end def test puts self end end TestT.inject_instance_method :test do puts "hello world! instance" end TestT.inject_singleton_method :test, params: "after" do puts "hello world! singleton" end puts "\nafter,singleton case:" TestT.test puts "\nbefore,instance case:" TestT.new.test #after,singleton case: #TestT #hello world! singleton # #before,instance case: #hello world! instance ##