Module: Archimate::FileFormats::Serializer::Archi::Bounds
- Included in:
- ArchiFileWriter
- Defined in:
- lib/archimate/file_formats/serializer/archi/bounds.rb
Instance Method Summary collapse
Instance Method Details
#serialize_bounds(xml, bounds) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/archimate/file_formats/serializer/archi/bounds.rb', line 8 def serialize_bounds(xml, bounds) return unless bounds xml.bounds( { x: bounds.x&.to_i, y: bounds.y&.to_i, width: bounds.width&.to_i, height: bounds.height&.to_i }.compact ) end |