Class: Nanoc::Core::Dependency Private
- Inherits:
-
Object
- Object
- Nanoc::Core::Dependency
- Includes:
- ContractsSupport
- Defined in:
- lib/nanoc/core/dependency.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.
A dependency between two items/layouts.
Constant Summary collapse
- C_OBJ_FROM =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
C::Or[Nanoc::Core::Item, Nanoc::Core::Layout, Nanoc::Core::Configuration, Nanoc::Core::IdentifiableCollection]
- C_OBJ_TO =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Nanoc::Core::Item
Instance Attribute Summary collapse
- #from ⇒ Object readonly private
- #props ⇒ Object readonly private
- #to ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(from, to, props) ⇒ Dependency
constructor
private
A new instance of Dependency.
- #inspect ⇒ Object private
Methods included from ContractsSupport
enabled?, included, setup_once, warn_about_performance
Constructor Details
#initialize(from, to, props) ⇒ Dependency
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 Dependency.
23 24 25 26 27 |
# File 'lib/nanoc/core/dependency.rb', line 23 def initialize(from, to, props) @from = from @to = to @props = props end |
Instance Attribute Details
#from ⇒ Object (readonly)
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.
14 15 16 |
# File 'lib/nanoc/core/dependency.rb', line 14 def from @from end |
#props ⇒ Object (readonly)
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.
20 21 22 |
# File 'lib/nanoc/core/dependency.rb', line 20 def props @props end |
#to ⇒ Object (readonly)
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.
17 18 19 |
# File 'lib/nanoc/core/dependency.rb', line 17 def to @to end |
Instance Method Details
#inspect ⇒ Object
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.
30 31 32 |
# File 'lib/nanoc/core/dependency.rb', line 30 def inspect "Dependency(#{@from.inspect} -> #{@to.inspect}, #{@props.inspect})" end |