Class: Dapp::Config::Directive::Mount
- Defined in:
- lib/dapp/config/directive/mount.rb
Overview
Mount
Instance Attribute Summary collapse
-
#_from ⇒ Object
readonly
Returns the value of attribute _from.
-
#_to ⇒ Object
readonly
Returns the value of attribute _to.
-
#_type ⇒ Object
readonly
Returns the value of attribute _type.
Instance Method Summary collapse
-
#initialize(to, **kwargs, &blk) ⇒ Mount
constructor
A new instance of Mount.
Constructor Details
#initialize(to, **kwargs, &blk) ⇒ Mount
Returns a new instance of Mount.
9 10 11 12 13 14 |
# File 'lib/dapp/config/directive/mount.rb', line 9 def initialize(to, **kwargs, &blk) raise Error::Config, code: :mount_to_absolute_path_required unless Pathname((to = to.to_s)).absolute? @_to = path_format(to) super(**kwargs, &blk) end |
Instance Attribute Details
#_from ⇒ Object (readonly)
Returns the value of attribute _from.
6 7 8 |
# File 'lib/dapp/config/directive/mount.rb', line 6 def _from @_from end |
#_to ⇒ Object (readonly)
Returns the value of attribute _to.
6 7 8 |
# File 'lib/dapp/config/directive/mount.rb', line 6 def _to @_to end |
#_type ⇒ Object (readonly)
Returns the value of attribute _type.
7 8 9 |
# File 'lib/dapp/config/directive/mount.rb', line 7 def _type @_type end |