In Files

Methods

Files

Tins::Find::PathExtension

Attributes

finder[RW]

Public Instance Methods

file() click to toggle source
# File lib/tins/find.rb, line 78
def file
  if stat.file?
    File.new(self)
  end
end
stat() click to toggle source
# File lib/tins/find.rb, line 63
def stat
  begin
    @stat ||=
      if finder.follow_symlinks
        File.stat(self)
      else
        File.lstat(self)
      end
  rescue EXPECTED_STANDARD_ERRORS
    if finder.raise_errors
      raise
    end
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.