Class: Confinement::Config::WatcherPaths

Inherits:
Object
  • Object
show all
Defined in:
lib/confinement.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root:) {|_self| ... } ⇒ WatcherPaths

Returns a new instance of WatcherPaths.

Yields:

  • (_self)

Yield Parameters:



166
167
168
169
170
171
172
173
174
175
# File 'lib/confinement.rb', line 166

def initialize(root:)
  @root = root
  @assets = []
  @contents = []

  yield(self)

  @assets = @assets.map { |path| @root.concat(path) }
  @contents = @contents.map { |path| @root.concat(path) }
end

Instance Attribute Details

#assetsObject (readonly)

Returns the value of attribute assets.



177
178
179
# File 'lib/confinement.rb', line 177

def assets
  @assets
end

#contentsObject (readonly)

Returns the value of attribute contents.



178
179
180
# File 'lib/confinement.rb', line 178

def contents
  @contents
end