Class: PhlexIcons::Flag::Sy

Inherits:
Base
  • Object
show all
Defined in:
lib/phlex-icons/flag/sy.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



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/phlex-icons/flag/sy.rb', line 25

def rectangle
  svg(
    **attrs,
    xmlns: 'http://www.w3.org/2000/svg',
    viewbox: '0 0 640 480',
    space: 'preserve'
  ) do |s|
    s.path(d: 'M0 0h640v480H0Z')
    s.path(fill: '#fff', d: 'M0 0h640v320H0Z')
    s.path(fill: '#007a3d', d: 'M0 0h640v160H0Z')
    s.path(
      fill: '#ce1126',
      d:
        'm101 300 39-120 39 120-102-74.2h126M461 300l39-120 39 120-102-74.2h126M281 300l39-120 39 120-102.1-74.2h126.2'
    )
  end
end

#squareObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/phlex-icons/flag/sy.rb', line 7

def square
  svg(
    **attrs,
    xmlns: 'http://www.w3.org/2000/svg',
    viewbox: '0 0 512 512',
    space: 'preserve'
  ) do |s|
    s.path(d: 'M0 0h512v512H0Z')
    s.path(fill: '#fff', d: 'M0 0h512v341.3H0Z')
    s.path(fill: '#007a3d', d: 'M0 0h512v170.7H0Z')
    s.path(
      fill: '#ce1126',
      d:
        'M26.3 317.9 67.2 192 108 317.9 1 240h132.4m270.5 77.8L445 192l40.8 125.9-107-77.8H511m-295.9 77.8L256 192l40.9 125.9-107-77.8h132.3'
    )
  end
end