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::ImmutableSortedSetOf, Contracts::PATH_MATCHER

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.


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

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

Instance Attribute Details

#depends_onObject

Returns the value of attribute depends_on


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

def depends_on
  @depends_on
end

#vertexObject (readonly)

Returns the value of attribute vertex


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

def vertex
  @vertex
end

Instance Method Details

#to_sObject


24
25
26
# File 'middleman-core/lib/middleman-core/dependencies/edge.rb', line 24

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