Class: SparkFiles
- Inherits:
-
Object
- Object
- SparkFiles
- Defined in:
- lib/spark/worker/spark_files.rb
Class Attribute Summary collapse
-
.root_directory ⇒ Object
Returns the value of attribute root_directory.
Class Method Summary collapse
Class Attribute Details
.root_directory ⇒ Object
Returns the value of attribute root_directory.
4 5 6 |
# File 'lib/spark/worker/spark_files.rb', line 4 def root_directory @root_directory end |
Class Method Details
.get(file_name) ⇒ Object
7 8 9 |
# File 'lib/spark/worker/spark_files.rb', line 7 def self.get(file_name) File.join(root_directory, file_name) end |
.get_content(file_name) ⇒ Object
11 12 13 |
# File 'lib/spark/worker/spark_files.rb', line 11 def self.get_content(file_name) File.read(get(file_name)) end |