1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/net/ftp.rb (size, modify, create, type, unique, perm, lang,

media_type, charset): new methods to return standard facts.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shugo 2015-09-13 00:47:01 +00:00
parent ddc58a867e
commit ca48cc4ad5
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Sun Sep 13 09:38:51 2015 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/ftp.rb (size, modify, create, type, unique, perm, lang,
media_type, charset): new methods to return standard facts.
Sat Sep 12 19:43:49 2015 Koichi Sasada <ko1@atdot.net>
* vm_insnhelper.c (vm_call_iseq_setup_normal): do not clear local

View file

@ -781,6 +781,14 @@ module Net
@pathname = pathname
end
standard_facts = %w(size modify create type unique perm
lang media-type charset)
standard_facts.each do |factname|
define_method factname.gsub(/-/, "_") do
facts[factname]
end
end
#
# Returns +true+ if the entry is a file (i.e., the value of the type
# fact is file).