Class: Middleman::Dependencies::Edge

Inherits:
Object
  • Object
show all
Includes:
Contracts
Defined in:
middleman-core/lib/middleman-core/dependencies/edge.rb

Constant Summary

Constants included from Contracts

Contracts::ImmutableSetOf, Contracts::ImmutableSortedSetOf, Contracts::OldResourceList, Contracts::PATH_MATCHER, Contracts::ResourceList, Contracts::VectorOf

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Contracts

#Contract

Constructor Details

#initialize(vertex, depends_on) ⇒ Edge

Returns a new instance of Edge


16
17
18
19
# File 'middleman-core/lib/middleman-core/dependencies/edge.rb', line 16

def initialize(vertex, depends_on)
  @vertex = vertex
  @depends_on = depends_on
end

Instance Attribute Details

#depends_onObject

Returns the value of attribute depends_on


13
14
15
# File 'middleman-core/lib/middleman-core/dependencies/edge.rb', line 13

def depends_on
  @depends_on
end

#vertexObject (readonly)

Returns the value of attribute vertex


10
11
12
# File 'middleman-core/lib/middleman-core/dependencies/edge.rb', line 10

def vertex
  @vertex
end

Instance Method Details

#to_sObject


22
23
24
# File 'middleman-core/lib/middleman-core/dependencies/edge.rb', line 22

def to_s
  "#<#{self.class} vertex=#{@vertex} edges=#{@edges}>"
end