Class: Fiona7::Builder::ContainerChainBuilder

Inherits:
Object
  • Object
show all
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

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

#callObject



12
13
14
# File 'lib/fiona7/builder/container_chain_builder.rb', line 12

def call
  ensure_parent_exists(@path)
end