èªåã®ã©ã¤ãã©ãªã§ String ãªã©ã®åºæ¬çãªã¯ã©ã¹ããªã¼ãã³ãã¦ã¡ã½ããã追å ããå ´åã®æ¸ãæ¹ã«ã¤ãã¦ãactivesupport-2.3.2ãactivesupport-3.2.3ãzucker-12.1ãfacets-2.9.3 ã§ã©ããã£ã¦ãããã調ã¹ã¾ããã activesupport-2.3.2 ã®å ´å â¼ activesupport-2.3.2/lib/active_support/core_ext/string.rb require 'active_support/core_ext/string/filters' ... class String #:nodoc: ... include ActiveSupport::CoreExtensions::String::Filters ... end â¼ activesupport-2.3.2/lib/active_suppo
# encoding: utf-8 require 'facets/kernel/try' #------------------------------------------------------------------------------- # try: å¾ãã«ç¶ãã¡ã½ããããé常éãã«å¼ã³åºãã # nilã«å¯¾ãã¦åå¨ããªãã¡ã½ãããå¼ã³åºããå ´åã§ãã¨ã©ã¼ã«ãªããªãï¼nilãè¿ãï¼ # # 主ã«ãnilãããããªãå¤æ°ãã«å¯¾ãã¦ããªã«ãã®ã¡ã½ãããå¼ã³åºãããã¨ãã«ä½¿ã options = {:output_path => ' /var/gems/1.9.1/ '} @stripped_path = options[:output_path].try.strip p @stripped_path # => "/var/gems/1.9.1/" options = {} @s
# encoding: utf-8 require 'facets/time' time = Time.new(2013, 2, 5, 17, 42, 50) p time # => 2013-02-05 17:42:50 +0900 #------------------------------------------------------------------------------- # Time.elapse: ãããã¯ã®å®è¡æéãè¨æ¸¬ãã p Time.elapse{ sleep(1) } # => 1.0000581741333008 #------------------------------------------------------------------------------- # stamp: 対象ã®æ¥æãæå®ãããã©ã¼ãããã§æååå # Time.st
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}