Class: PhlexIcons::Flag::Sc

Inherits:
Base
  • Object
show all
Defined in:
lib/phlex-icons/flag/sc.rb

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#initialize, #view_template

Constructor Details

This class inherits a constructor from PhlexIcons::Base

Instance Method Details

#rectangleObject



18
19
20
21
22
23
24
25
26
27
28
# File 'lib/phlex-icons/flag/sc.rb', line 18

def rectangle
  svg(
    **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
  ) do |s|
    s.path(fill: '#fff', d: 'M0 0h640v480H0Z')
    s.path(fill: '#d92223', d: 'M0 480V0h640v160z')
    s.path(fill: '#fcd955', d: 'M0 480V0h426.7z')
    s.path(fill: '#003d88', d: 'M0 480V0h213.3z')
    s.path(fill: '#007a39', d: 'm0 480 640-160v160z')
  end
end

#squareObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/phlex-icons/flag/sc.rb', line 6

def square
  svg(
    **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
  ) do |s|
    s.path(fill: '#fff', d: 'M0 0h512v512H0Z')
    s.path(fill: '#d92223', d: 'M0 512V0h512v170.7z')
    s.path(fill: '#fcd955', d: 'M0 512V0h341.3z')
    s.path(fill: '#003d88', d: 'M0 512V0h170.7z')
    s.path(fill: '#007a39', d: 'm0 512 512-170.7V512Z')
  end
end