Class: Fog::Local::Real
- Inherits:
-
Object
- Object
- Fog::Local::Real
- Includes:
- Collections
- Defined in:
- lib/fog/local.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Real
constructor
A new instance of Real.
- #local_root ⇒ Object
- #path_to(partial) ⇒ Object
Methods included from Collections
Constructor Details
#initialize(options = {}) ⇒ Real
Returns a new instance of Real.
45 46 47 |
# File 'lib/fog/local.rb', line 45 def initialize(={}) @local_root = ::File.([:local_root]) end |
Instance Method Details
#local_root ⇒ Object
49 50 51 |
# File 'lib/fog/local.rb', line 49 def local_root @local_root end |
#path_to(partial) ⇒ Object
53 54 55 |
# File 'lib/fog/local.rb', line 53 def path_to(partial) ::File.join(@local_root, partial) end |