Class: USPSFlags::Core::TridentSpecs::Build

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

Instance Method Summary collapse

Constructor Details

#initialize(fly: 24, unit: 'in', scaled_border: false) ⇒ Build

Returns a new instance of Build.



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

def initialize(fly: 24, unit: 'in', scaled_border: false)
  @config = USPSFlags.configuration.trident
  @scaled_border = scaled_border
  configure_sizes(fly)
  configure_labels(unit)
end

Instance Method Details

#svgObject



18
19
20
21
22
23
24
25
# File 'lib/usps_flags/core/trident_specs/build.rb', line 18

def svg
  svg = spec_header
  svg << add_short_trident
  svg << add_delta_trident
  svg << add_national_tridents

  svg
end