Class: DrawioDsl::Configuration::Connector::CompassPoint
- Inherits:
-
Object
- Object
- DrawioDsl::Configuration::Connector::CompassPoint
- Defined in:
- lib/drawio_dsl/configuration.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
- #entry_modifiers ⇒ Object
-
#exit_modifiers ⇒ Object
should this be start/end.
-
#initialize(x, y) ⇒ CompassPoint
constructor
A new instance of CompassPoint.
Constructor Details
#initialize(x, y) ⇒ CompassPoint
Returns a new instance of CompassPoint.
218 219 220 221 |
# File 'lib/drawio_dsl/configuration.rb', line 218 def initialize(x, y) @x = x @y = y end |
Instance Attribute Details
#x ⇒ Object (readonly)
Returns the value of attribute x.
215 216 217 |
# File 'lib/drawio_dsl/configuration.rb', line 215 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
216 217 218 |
# File 'lib/drawio_dsl/configuration.rb', line 216 def y @y end |
Instance Method Details
#entry_modifiers ⇒ Object
228 229 230 |
# File 'lib/drawio_dsl/configuration.rb', line 228 def entry_modifiers "entryX=#{x};entryY=#{y};entryDx=0;entryDy=0" end |
#exit_modifiers ⇒ Object
should this be start/end
224 225 226 |
# File 'lib/drawio_dsl/configuration.rb', line 224 def exit_modifiers "exitX=#{x};exitY=#{y};exitDx=0;exitDy=0" end |