Webã¢ããªã±ã¼ã·ã§ã³ã®ãã¹ãã«ä½¿ã端æ«ã決å®ããããã«ãæåã¯ruby -e 'p %w(iPad Firefox Android).sample'ã¨ã©ã³ãã ã§å¤ãè¿ãã¦ãã¾ããã 使ã£ã¦ããã¨ãã©ã³ãã ããã¯é çªãããã¨æãã¾ããã ã¾ããé çªãåå使ã£ã端æ«ãè¦ãã¦ãã¦ããã®æ¬¡ããå®è¡ã§ããã¨å¬ããã§ãã ããã¦ä½ã£ãã®ãããã®ã¹ã¯ãªããã§ãã script = File.read(__FILE__).split("__END__\n").first value = DATA.gets puts value File.open(__FILE__, 'w') do _1.write script _1.write "__END__\n" _1.write DATA.read _1.write value end __END__ iPad Firefox Android å®è¡ããã¨æ¬¡ã®ã
{{#tags}}- {{label}}
{{/tags}}