Class: Quark::MdkRuntime::Files::FileActor
- Inherits:
-
DatawireQuarkCore::QuarkObject
- Object
- DatawireQuarkCore::QuarkObject
- Quark::MdkRuntime::Files::FileActor
- Extended by:
- DatawireQuarkCore::Static
- Defined in:
- lib/mdk_runtime/files.rb
Constant Summary
Constants included from DatawireQuarkCore::Static
DatawireQuarkCore::Static::Unassigned
Instance Method Summary collapse
- #__init_fields__ ⇒ Object
- #_getClass ⇒ Object
- #_getField(name) ⇒ Object
- #_setField(name, value) ⇒ Object
-
#delete(path) ⇒ Object
Delete a file.
-
#initialize ⇒ FileActor
constructor
A new instance of FileActor.
-
#mktempdir ⇒ Object
Create a temporary directory and return its path.
-
#onStop ⇒ Object
The Actor should begin shutting down.
-
#write(path, contents) ⇒ Object
Write a file with UTF-8 encoded text.
Methods included from DatawireQuarkCore::Static
_lazy_statics, static, unlazy_statics
Methods inherited from DatawireQuarkCore::QuarkObject
Constructor Details
#initialize ⇒ FileActor
Returns a new instance of FileActor.
220 221 222 223 224 |
# File 'lib/mdk_runtime/files.rb', line 220 def initialize() self.__init_fields__ nil end |
Instance Method Details
#__init_fields__ ⇒ Object
287 288 289 290 291 |
# File 'lib/mdk_runtime/files.rb', line 287 def __init_fields__() nil end |
#_getClass ⇒ Object
256 257 258 259 260 261 |
# File 'lib/mdk_runtime/files.rb', line 256 def _getClass() return "mdk_runtime.files.FileActor" nil end |
#_getField(name) ⇒ Object
263 264 265 266 267 268 |
# File 'lib/mdk_runtime/files.rb', line 263 def _getField(name) return nil nil end |
#_setField(name, value) ⇒ Object
270 271 272 273 274 275 |
# File 'lib/mdk_runtime/files.rb', line 270 def _setField(name, value) nil nil end |
#delete(path) ⇒ Object
Delete a file.
250 251 252 253 254 |
# File 'lib/mdk_runtime/files.rb', line 250 def delete(path) raise NotImplementedError, '`FileActor.delete` is an abstract method' nil end |
#mktempdir ⇒ Object
Create a temporary directory and return its path.
232 233 234 235 236 |
# File 'lib/mdk_runtime/files.rb', line 232 def mktempdir() raise NotImplementedError, '`FileActor.mktempdir` is an abstract method' nil end |
#onStop ⇒ Object
The Actor should begin shutting down.
280 281 282 283 284 285 |
# File 'lib/mdk_runtime/files.rb', line 280 def onStop() nil nil end |
#write(path, contents) ⇒ Object
Write a file with UTF-8 encoded text.
241 242 243 244 245 |
# File 'lib/mdk_runtime/files.rb', line 241 def write(path, contents) raise NotImplementedError, '`FileActor.write` is an abstract method' nil end |