class Upload::Image

Attributes

path[R]

Public Class Methods

new(path) click to toggle source
# File lib/upload/image.rb, line 5
def initialize(path)
  @path = File.expand_path path
end

Public Instance Methods

exist?() click to toggle source
# File lib/upload/image.rb, line 9
def exist?
  !!File.file?(path)
end
file() click to toggle source
# File lib/upload/image.rb, line 13
def file
  File.new(@path, "rb")
end