class Ckeditor::Http::UploadedFile
Create tempfile from hash
def initialize(hash)
def initialize(hash) @original_filename = hash[:filename] @content_type = hash[:type] @headers = hash[:head] @tempfile = hash[:tempfile] raise(ArgumentError, ':tempfile is required') unless @tempfile end
def open
def open @tempfile.open end
def path
def path @tempfile.path end
def read(*args)
def read(*args) @tempfile.read(*args) end
def rewind
def rewind @tempfile.rewind end
def size
def size @tempfile.size end