aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net/ftp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/ftp.rb')
-rw-r--r--lib/net/ftp.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb
index f5d45a80a1..494cd478b1 100644
--- a/lib/net/ftp.rb
+++ b/lib/net/ftp.rb
@@ -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).