Module: Nest::ClassMethods
- Defined in:
- lib/nest.rb
Instance Attribute Summary collapse
-
#mount_point ⇒ Object
readonly
Returns the value of attribute mount_point.
Instance Method Summary collapse
Instance Attribute Details
#mount_point ⇒ Object (readonly)
Returns the value of attribute mount_point.
11 12 13 |
# File 'lib/nest.rb', line 11 def mount_point @mount_point end |
Instance Method Details
#mount(path) ⇒ Object
13 14 15 16 |
# File 'lib/nest.rb', line 13 def mount( path ) @mount_point = path raise "invalid path" unless valid? end |
#root ⇒ Object
22 23 24 |
# File 'lib/nest.rb', line 22 def root new '/' end |