http://www.ruby-lang.org/ja/man/?cmd=view;name=pathname å æ¥ã®Railsåå¼·ä¼ã§etoããã«Pathnameã¨ãããã¹ããã¡ã¤ã«åã®ããã便å©ãªã©ã¤ãã©ãªãæãã¦è²°ã£ããã§ãæ©é使ã£ã¦ã¿ãã¨ãããã£ã¡ã便å©ã§ãã¾æ¸ãã¦ãã¢ããªã±ã¼ã·ã§ã³ããã»ã¨ãã©ã®ãã¡ã¤ã«åã®æä½ã«ä½¿ã£ã¦ãã¨ããã 使ãæ¹ã¯ãã£ã¡ãç°¡åã§ãã¹ããã¡ã¤ã«åãå¼æ°ã¨ãã¦ãªãã¸ã§ã¯ããä½ãã ãã require 'pathname' file = '/tmp/foo' path = Pathname.new file ã§ãããã®ä½ã便å©ã£ã¦ããã¨ãªãã¡ã¬ã³ã¹ããã¥ã¢ã«ã®ã¡ã½ãããçºãã¦è²°ãã¨è§£ããã ãã©ããã¡ã¤ã«é¢ä¿ã®æä½ãä½ã§ãã§ãã¦ãã¾ããé常ã ã¨Fileãªãã¸ã§ã¯ããä½ãã«ã¯å®ä½ãç¡ãã¨ãã¡ãªãã ãã©ç¡ãã¦ããã¡ããä½ãããã str = IO.read(file)
{{#tags}}- {{label}}
{{/tags}}