IRBã®ãã¼ã¸ã§ã³ã¯ç°¡åã«å¤æ´ã§ãããã©ãRelineã®ãã¼ã¸ã§ã³å¤ãã¦IRBèµ·åããã®ãé¢åã ã£ãã®ã§ã¹ã¯ãªãããæ¸ãã¦ã¿ãã æå ã§ãã使ããªãã®ã§ARGVã§æåå渡ãã ãã®ç°¡ç´ ãªä½ãã bundler/inline ã¯ä¾¿å©ã ãªãã ã³ã¼ãã«ãã³ã¡ã³ããã¦ãããã©ãARGV.clear ããªãã¨IRBã® lib/irb/magic-file.rb 㧠ARGV[0] ã File.open ãããã¨ãã¦è½ã¡ãã®ã§ ARGV.clear ãã¦ããã 使ç¨ä¾ ruby irb_reline_versions_changer.rb 1.4.1 0.3.0 #!/usr/bin/env ruby require 'bundler/inline' IRB_VERSION = ARGV[0] RELINE_VERSION = ARGV[1] # NOTE: IRBã®MagicFileã§ARGVãã
{{#tags}}- {{label}}
{{/tags}}