Class: OFlow::Graffle::LineInfo
Overview
Element
Instance Attribute Summary collapse
-
#head ⇒ Object
Returns the value of attribute head.
-
#label ⇒ Object
Returns the value of attribute label.
-
#op ⇒ Object
Returns the value of attribute op.
-
#tail ⇒ Object
Returns the value of attribute tail.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(nodes) ⇒ LineInfo
constructor
A new instance of LineInfo.
- #to_s ⇒ Object
Constructor Details
#initialize(nodes) ⇒ LineInfo
Returns a new instance of LineInfo.
203 204 205 206 207 |
# File 'lib/oflow/graffle.rb', line 203 def initialize(nodes) super @tail = Graffle.get_key_value(Graffle.get_key_value(nodes, 'Tail'), 'ID') @head = Graffle.get_key_value(Graffle.get_key_value(nodes, 'Head'), 'ID') end |
Instance Attribute Details
#head ⇒ Object
Returns the value of attribute head.
199 200 201 |
# File 'lib/oflow/graffle.rb', line 199 def head @head end |
#label ⇒ Object
Returns the value of attribute label.
200 201 202 |
# File 'lib/oflow/graffle.rb', line 200 def label @label end |
#op ⇒ Object
Returns the value of attribute op.
201 202 203 |
# File 'lib/oflow/graffle.rb', line 201 def op @op end |
#tail ⇒ Object
Returns the value of attribute tail.
198 199 200 |
# File 'lib/oflow/graffle.rb', line 198 def tail @tail end |
Instance Method Details
#to_s ⇒ Object
209 210 211 |
# File 'lib/oflow/graffle.rb', line 209 def to_s() "LineInfo{id:#{@id}, tail:#{@tail}, head:#{@head}, label: #{label}:#{op}}" end |