In Files

  • rake/contrib/ftptools.rb

Rake::FtpFile

Note: Not released for general use.

Attributes

group[R]
name[R]
owner[R]
size[R]
time[R]

Public Class Methods

date() click to toggle source
 
               # File rake/contrib/ftptools.rb, line 17
def self.date
  @date_class ||= Date
end
            
new(path, entry) click to toggle source
 
               # File rake/contrib/ftptools.rb, line 25
def initialize(path, entry)
  @path = path
  @mode, _, @owner, @group, size, d1, d2, d3, @name = entry.split(' ')
  @size = size.to_i
  @time = determine_time(d1, d2, d3)
end
            
time() click to toggle source
 
               # File rake/contrib/ftptools.rb, line 21
def self.time
  @time_class ||= Time
end
            

Public Instance Methods

directory?() click to toggle source
 
               # File rake/contrib/ftptools.rb, line 36
def directory?
  @mode[0] == ?d
end
            
mode() click to toggle source
 
               # File rake/contrib/ftptools.rb, line 40
def mode
  parse_mode(@mode)
end
            
path() click to toggle source
 
               # File rake/contrib/ftptools.rb, line 32
def path
  File.join(@path, @name)
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus