Class: CallGraph::Printers::Dot::Line
- Inherits:
-
Object
- Object
- CallGraph::Printers::Dot::Line
- Defined in:
- lib/call_graph/printers/dot/line.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#caller ⇒ Object
readonly
Returns the value of attribute caller.
-
#receiver ⇒ Object
readonly
Returns the value of attribute receiver.
Instance Method Summary collapse
-
#initialize(caller, receiver, attributes = {}) ⇒ Line
constructor
A new instance of Line.
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
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/call_graph/printers/dot/line.rb', line 5 def attributes @attributes end |
#caller ⇒ Object (readonly)
Returns the value of attribute caller.
5 6 7 |
# File 'lib/call_graph/printers/dot/line.rb', line 5 def caller @caller end |
#receiver ⇒ Object (readonly)
Returns the value of attribute receiver.
5 6 7 |
# File 'lib/call_graph/printers/dot/line.rb', line 5 def receiver @receiver end |