Sha256: e2c3b9a2f64b0a8444a321da3e6c21258f949c089c463ba60ccdc20b350b7ac6
Contents?: true
Size: 1.46 KB
Versions: 34
Compression:
Stored size: 1.46 KB
Contents
# Controller class for the core SVG data. # # These methods should never need to be called directly. # @private class USPSFlags::Core def self.trident_spec(fly: 24, unit: "in") USPSFlags::Core::TridentSpec.new(fly: fly, unit: unit).svg end def self.headers(width: nil, height: nil, pennant: false, scale: nil, title: "USPS Flag") USPSFlags::Core::Headers.new(width: width, height: height, pennant: pennant, scale: scale, title: title).svg end def self.footer USPSFlags::Core::Footer.new.svg end def self.field(style: :regular, color: :white, fly: USPSFlags::Config::BASE_FLY) USPSFlags::Core::Field.new(style: style, color: color, fly: fly).svg end def self.trident(type, color: :blue, field_color: nil) USPSFlags::Core::Trident.new(type, color: color, field_color: field_color).svg end def self.anchor(color = :red) USPSFlags::Core::Anchor.new(color: color).svg end def self.lighthouse USPSFlags::Core::Lighthouse.new.svg end def self.binoculars(type = :d) USPSFlags::Core::Binoculars.new(type: type).svg end def self.trumpet(type = :s) USPSFlags::Core::Trumpet.new(type: type).svg end def self.pennant(type = "cruise") USPSFlags::Core::Pennant.new(type: type).svg end def self.ensign USPSFlags::Core::Ensign.new.svg end def self.star USPSFlags::Core::Star.new.svg end def self.wheel USPSFlags::Core::Wheel.new.svg end def self.us USPSFlags::Core::US.new.svg end end
Version data entries
34 entries across 34 versions & 1 rubygems