Class: StaticFileSaver
- Inherits:
-
Object
- Object
- StaticFileSaver
- Defined in:
- lib/static_file_saver.rb
Instance Attribute Summary collapse
-
#document ⇒ Object
Returns the value of attribute document.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(ember_path, document) ⇒ StaticFileSaver
constructor
A new instance of StaticFileSaver.
- #save ⇒ Object
Constructor Details
#initialize(ember_path, document) ⇒ StaticFileSaver
Returns a new instance of StaticFileSaver.
4 5 6 7 |
# File 'lib/static_file_saver.rb', line 4 def initialize(ember_path, document) self.path = static_file_path_for(ember_path) self.document = document end |
Instance Attribute Details
#document ⇒ Object
Returns the value of attribute document.
2 3 4 |
# File 'lib/static_file_saver.rb', line 2 def document @document end |
#path ⇒ Object
Returns the value of attribute path.
2 3 4 |
# File 'lib/static_file_saver.rb', line 2 def path @path end |
Instance Method Details
#save ⇒ Object
9 10 11 12 |
# File 'lib/static_file_saver.rb', line 9 def save create_directory create_file end |