Class: CallGraph::Printers::Dot::Line

Inherits:
Object
  • Object
show all
Defined in:
lib/call_graph/printers/dot/line.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(caller, receiver, attributes = {}) ⇒ Line

Returns a new instance of Line.



7
8
9
10
11
# File 'lib/call_graph/printers/dot/line.rb', line 7

def initialize(caller, receiver, attributes = {})
  @caller     = caller
  @receiver   = receiver
  @attributes = attributes
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



5
6
7
# File 'lib/call_graph/printers/dot/line.rb', line 5

def attributes
  @attributes
end

#callerObject (readonly)

Returns the value of attribute caller.



5
6
7
# File 'lib/call_graph/printers/dot/line.rb', line 5

def caller
  @caller
end

#receiverObject (readonly)

Returns the value of attribute receiver.



5
6
7
# File 'lib/call_graph/printers/dot/line.rb', line 5

def receiver
  @receiver
end