Class: Browser::FileList::File::FileReader Private

Inherits:
Object
  • Object
show all
Includes:
EventTarget
Defined in:
lib/browser/file_list.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

The object that reads the file from disk.

Instance Method Summary collapse

Methods included from EventTarget

#off, #on

Constructor Details

#initializeFileReader

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of FileReader.



111
112
113
# File 'lib/browser/file_list.rb', line 111

def initialize
  @native = `new FileReader()`
end

Instance Method Details

#read_as_binary_string(file) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



119
120
121
# File 'lib/browser/file_list.rb', line 119

def read_as_binary_string file
  `#@native.readAsBinaryString(#{file.to_n})`
end

#resultObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



115
116
117
# File 'lib/browser/file_list.rb', line 115

def result
  `#@native.result`
end