Class: Browser::FileList::File::FileReader Private
- 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
-
#initialize ⇒ FileReader
constructor
private
A new instance of FileReader.
- #read_as_binary_string(file) ⇒ Object private
- #result ⇒ Object private
Methods included from EventTarget
Constructor Details
#initialize ⇒ FileReader
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 |
#result ⇒ 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.
115 116 117 |
# File 'lib/browser/file_list.rb', line 115 def result `#@native.result` end |