Module: Notebook
- Defined in:
- lib/notebook.rb,
lib/notebook/version.rb,
lib/notebook/attachment.rb,
lib/notebook/rails/engine.rb,
lib/notebook/storage_adapters.rb,
lib/notebook/rails/active_record.rb,
lib/notebook/storage_adapters/base.rb,
lib/notebook/storage_adapters/filesystem.rb
Defined Under Namespace
Modules: ActiveRecordAttachment, StorageAdapters Classes: Attachment, Engine
Constant Summary collapse
- VERSION =
'0.1.0'
Class Method Summary collapse
-
.public_directory ⇒ Object
Return the current filesystem storage directory in use.
-
.public_directory=(directory) ⇒ Object
Set the storage filesystem directory to use.
Class Method Details
.public_directory ⇒ Object
Return the current filesystem storage directory in use
11 12 13 |
# File 'lib/notebook.rb', line 11 def self.public_directory @public_directory || (Pathname.pwd + 'public') end |
.public_directory=(directory) ⇒ Object
Set the storage filesystem directory to use
16 17 18 |
# File 'lib/notebook.rb', line 16 def self.public_directory=(directory) @public_directory = directory end |