Class: Dapp::Config::Directive::Mount

Inherits:
Base
  • Object
show all
Defined in:
lib/dapp/config/directive/mount.rb

Overview

Mount

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(to, **kwargs, &blk) ⇒ Mount

Returns a new instance of Mount.

Raises:



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

#_fromObject (readonly)

Returns the value of attribute _from.



6
7
8
# File 'lib/dapp/config/directive/mount.rb', line 6

def _from
  @_from
end

#_toObject (readonly)

Returns the value of attribute _to.



6
7
8
# File 'lib/dapp/config/directive/mount.rb', line 6

def _to
  @_to
end

#_typeObject (readonly)

Returns the value of attribute _type.



7
8
9
# File 'lib/dapp/config/directive/mount.rb', line 7

def _type
  @_type
end