Sha256: 56b759a3535bdc3137d0ae34f7c6831ee1509f54c2531f7488eb962a2ad4bfe9
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
# frozen_string_literal: true # @api private # @since 0.1.0 class SmartCore::Container::Entities::DependencyBuilder class << self # @param dependency_name [String] # @param dependency_definition [Proc] # @return [SmartCore::Container::Entities::Dependency] # # @api private # @since 0.1.0 def build(dependency_name, dependency_definition) new(dependency_name, dependency_definition).build end end # @param dependency_name [String] # @param dependency_definition [Proc] # @return [void] # # @api private # @since 0.1.0 def initialize(dependency_name, dependency_definition) @dependency_name = dependency_name @dependency_definition = dependency_definition end # @return [SmartCore::Container::Entities::Dependency] # # @api private # @since 0.1.0 def build SmartCore::Container::Entities::Dependency.new(dependency_name, dependency_definition) end private # @return [String] # # @api private # @since 0.1.0 attr_reader :dependency_name # @return [Proc] # # @api private # @since 0.1.0 attr_reader :dependency_definition end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smart_container-0.1.0 | lib/smart_core/container/entities/dependency_builder.rb |