[ruby-cvs:61694] nobu:r54533 (trunk): file.c: prefer rb_check_arity

nobu at ruby-lang.org nobu at ruby-lang.org
Mon Apr 11 06:59:02 JST 2016


nobu	2016-04-11 06:59:02 +0900 (Mon, 11 Apr 2016)

  New Revision: 54533

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54533

  Log:
    file.c: prefer rb_check_arity
    
    * file.c (rb_file_s_expand_path, rb_file_s_absolute_path): use
      rb_check_arity instead of rb_scan_args for a simple optional
      argument.
    
    * file.c (rb_file_s_realpath, rb_file_s_realdirpath): ditto.
    
    * file.c (rb_file_s_basename): ditto.

  Modified files:
    trunk/file.c


More information about the ruby-cvs mailing list