Class: Fiona7::Builder::ContainerChainBuilder
- Inherits:
-
Object
- Object
- Fiona7::Builder::ContainerChainBuilder
- Includes:
- NameAndParentFromPath
- Defined in:
- lib/fiona7/builder/container_chain_builder.rb
Overview
given a path it will ensure that all objects on this path exist (or will be created if neccessary)
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(path) ⇒ ContainerChainBuilder
constructor
A new instance of ContainerChainBuilder.
Methods included from NameAndParentFromPath
#name_and_parent_path_from_path
Constructor Details
#initialize(path) ⇒ ContainerChainBuilder
Returns a new instance of ContainerChainBuilder.
8 9 10 |
# File 'lib/fiona7/builder/container_chain_builder.rb', line 8 def initialize(path) @path = path end |
Instance Method Details
#call ⇒ Object
12 13 14 |
# File 'lib/fiona7/builder/container_chain_builder.rb', line 12 def call ensure_parent_exists(@path) end |