Class: USPSFlags::Core::TridentSpecs::Build
- Inherits:
-
Object
- Object
- USPSFlags::Core::TridentSpecs::Build
- Defined in:
- lib/usps_flags/core/trident_specs/build.rb
Instance Method Summary collapse
-
#initialize(fly: 24, unit: 'in', scaled_border: false) ⇒ Build
constructor
A new instance of Build.
- #svg ⇒ Object
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
#svg ⇒ Object
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 |