Class: Fog::Local::Storage::Real
- Inherits:
-
Object
- Object
- Fog::Local::Storage::Real
- Defined in:
- lib/fog/local/storage.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Real
constructor
A new instance of Real.
- #local_root ⇒ Object
- #path_to(partial) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Real
Returns a new instance of Real.
43 44 45 |
# File 'lib/fog/local/storage.rb', line 43 def initialize(={}) @local_root = ::File.([:local_root]) end |
Instance Method Details
#local_root ⇒ Object
47 48 49 |
# File 'lib/fog/local/storage.rb', line 47 def local_root @local_root end |
#path_to(partial) ⇒ Object
51 52 53 |
# File 'lib/fog/local/storage.rb', line 51 def path_to(partial) ::File.join(@local_root, partial) end |