Class: USPSFlags::Core::TridentSpecs::Header
- Defined in:
- lib/usps_flags/core/trident_specs/header.rb
Instance Method Summary collapse
-
#initialize(**options) ⇒ Header
constructor
A new instance of Header.
- #p ⇒ Object
Constructor Details
#initialize(**options) ⇒ Header
Returns a new instance of Header.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/usps_flags/core/trident_specs/header.rb', line 11 def initialize(**) super(**) @fly = [:fly] @fly_fraction = [:fly_fraction] @hoist = [:hoist] @hoist_fraction = [:hoist_fraction] @unit_text = [:unit_text] @scaled_border = [:scaled_border] @no_measurements = .key?(:no_measurements) && [:no_measurements] end |
Instance Method Details
#p ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/usps_flags/core/trident_specs/header.rb', line 22 def p <<~SVG #{field} #{heading} #{units} SVG end |