Class: Confinement::Config::WatcherPaths
- Inherits:
-
Object
- Object
- Confinement::Config::WatcherPaths
- Defined in:
- lib/confinement.rb
Instance Attribute Summary collapse
-
#assets ⇒ Object
readonly
Returns the value of attribute assets.
-
#contents ⇒ Object
readonly
Returns the value of attribute contents.
Instance Method Summary collapse
-
#initialize(root:) {|_self| ... } ⇒ WatcherPaths
constructor
A new instance of WatcherPaths.
Constructor Details
#initialize(root:) {|_self| ... } ⇒ WatcherPaths
Returns a new instance of WatcherPaths.
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
#assets ⇒ Object (readonly)
Returns the value of attribute assets.
177 178 179 |
# File 'lib/confinement.rb', line 177 def assets @assets end |
#contents ⇒ Object (readonly)
Returns the value of attribute contents.
178 179 180 |
# File 'lib/confinement.rb', line 178 def contents @contents end |