Class: PhlexIcons::Flag::Sr

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



20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/phlex-icons/flag/sr.rb', line 20

def rectangle
  svg(
    **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
  ) do |s|
    s.path(fill: '#377e3f', d: 'M.1 0h640v480H.1z')
    s.path(fill: '#fff', d: 'M.1 96h640v288H.1z')
    s.path(fill: '#b40a2d', d: 'M.1 144h640v192H.1z')
    s.path(
      fill: '#ecc81d',
      d: 'm320 153.2 56.4 173.6-147.7-107.3h182.6L263.6 326.8z'
    )
  end
end

#squareObject



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

def square
  svg(
    **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
  ) do |s|
    s.path(fill: '#377e3f', d: 'M0 0h512v512H0z')
    s.path(fill: '#fff', d: 'M0 102.4h512v307.2H0z')
    s.path(fill: '#b40a2d', d: 'M0 153.6h512v204.8H0z')
    s.path(
      fill: '#ecc81d',
      d: 'm255.9 163.4 60.2 185.2-157.6-114.5h194.8L195.7 348.6z'
    )
  end
end