Class: USPSFlags::Core::TridentSpecs::BuildIntersections

Inherits:
Object
  • Object
show all
Defined in:
lib/usps_flags/core/trident_specs/build_intersections.rb

Instance Method Summary collapse

Constructor Details

#initialize(fly: 2048, scaled_border: false) ⇒ BuildIntersections

Returns a new instance of BuildIntersections.



11
12
13
14
15
# File 'lib/usps_flags/core/trident_specs/build_intersections.rb', line 11

def initialize(fly: 2048, scaled_border: false)
  @scaled_border = scaled_border
  configure_sizes(fly)
  configure_labels('')
end

Instance Method Details

#svgObject



17
18
19
20
21
22
# File 'lib/usps_flags/core/trident_specs/build_intersections.rb', line 17

def svg
  svg = spec_header
  svg << add_cc_intersection
  svg << add_vc_intersection
  svg
end