Class: Rukawa::GraphNodeConfig
- Inherits:
-
Struct
- Object
- Struct
- Rukawa::GraphNodeConfig
- Defined in:
- lib/rukawa/configuration.rb
Instance Attribute Summary collapse
-
#shape ⇒ Object
Returns the value of attribute shape.
-
#style ⇒ Object
Returns the value of attribute style.
Instance Method Summary collapse
Instance Attribute Details
#shape ⇒ Object
Returns the value of attribute shape
48 49 50 |
# File 'lib/rukawa/configuration.rb', line 48 def shape @shape end |
#style ⇒ Object
Returns the value of attribute style
48 49 50 |
# File 'lib/rukawa/configuration.rb', line 48 def style @style end |
Instance Method Details
#attrs ⇒ Object
49 50 51 52 53 54 55 56 |
# File 'lib/rukawa/configuration.rb', line 49 def attrs if shape || style values = to_h.map { |k, v| "#{k} = #{v}" if v }.compact "node [#{values.join(",")}];\n" else "" end end |