class Nanoc::Core::Dependency

@api private A dependency between two items/layouts.

Constants

C_OBJ_FROM
C_OBJ_TO

Attributes

from[R]
props[R]
to[R]

Public Class Methods

new(from, to, props) click to toggle source
# File lib/nanoc/core/dependency.rb, line 23
def initialize(from, to, props)
  @from  = from
  @to    = to
  @props = props
end

Public Instance Methods

inspect() click to toggle source
# File lib/nanoc/core/dependency.rb, line 30
def inspect
  "Dependency(#{@from.inspect} -> #{@to.inspect}, #{@props.inspect})"
end