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.
199 200 201 202 203 |
# File 'lib/oflow/graffle.rb', line 199 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.
195 196 197 |
# File 'lib/oflow/graffle.rb', line 195 def head @head end |
#label ⇒ Object
Returns the value of attribute label.
196 197 198 |
# File 'lib/oflow/graffle.rb', line 196 def label @label end |
#op ⇒ Object
Returns the value of attribute op.
197 198 199 |
# File 'lib/oflow/graffle.rb', line 197 def op @op end |
#tail ⇒ Object
Returns the value of attribute tail.
194 195 196 |
# File 'lib/oflow/graffle.rb', line 194 def tail @tail end |
Instance Method Details
#to_s ⇒ Object
205 206 207 |
# File 'lib/oflow/graffle.rb', line 205 def to_s() "LineInfo{id:#{@id}, tail:#{@tail}, head:#{@head}, label: #{label}:#{op}}" end |