Class: Flows::Plugin::DependencyInjector::DependencyDefinition Private
- Inherits:
-
Struct
- Object
- Struct
- Flows::Plugin::DependencyInjector::DependencyDefinition
- Defined in:
- lib/flows/plugin/dependency_injector/dependency_definition.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Struct for storing dependency definitions.
Instance Attribute Summary collapse
-
#default ⇒ Object
Returns the value of attribute default.
-
#klass ⇒ Object
Returns the value of attribute klass.
-
#name ⇒ Object
Returns the value of attribute name.
-
#required ⇒ Object
Returns the value of attribute required.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize ⇒ DependencyDefinition
constructor
private
A new instance of DependencyDefinition.
Constructor Details
#initialize ⇒ DependencyDefinition
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of DependencyDefinition.
8 9 10 11 12 |
# File 'lib/flows/plugin/dependency_injector/dependency_definition.rb', line 8 def initialize(*) super raise MissingDependencyDefaultError.new(klass, name) if !required && (default == NO_DEFAULT) end |
Instance Attribute Details
#default ⇒ Object
Returns the value of attribute default
7 8 9 |
# File 'lib/flows/plugin/dependency_injector/dependency_definition.rb', line 7 def default @default end |
#klass ⇒ Object
Returns the value of attribute klass
7 8 9 |
# File 'lib/flows/plugin/dependency_injector/dependency_definition.rb', line 7 def klass @klass end |
#name ⇒ Object
Returns the value of attribute name
7 8 9 |
# File 'lib/flows/plugin/dependency_injector/dependency_definition.rb', line 7 def name @name end |
#required ⇒ Object
Returns the value of attribute required
7 8 9 |
# File 'lib/flows/plugin/dependency_injector/dependency_definition.rb', line 7 def required @required end |
#type ⇒ Object
Returns the value of attribute type
7 8 9 |
# File 'lib/flows/plugin/dependency_injector/dependency_definition.rb', line 7 def type @type end |