Class: PhlexIcons::Flag::Tn

Inherits:
Base
  • Object
show all
Defined in:
lib/phlex-icons/flag/tn.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
# File 'lib/phlex-icons/flag/tn.rb', line 20

def rectangle
  svg(
    **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
  ) do |s|
    s.path(fill: '#e70013', d: 'M0 0h640v480H0z')
    s.path(
      fill: '#fff',
      d:
        'M320 119.2a1 1 0 0 0-1 240.3 1 1 0 0 0 1-240.3M392 293a90 90 0 1 1 0-107 72 72 0 1 0 0 107m-4.7-21.7-37.4-12.1-23.1 31.8v-39.3l-37.4-12.2 37.4-12.2V188l23.1 31.8 37.4-12.1-23.1 31.8z'
    )
  end
end

#squareObject



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

def square
  svg(
    **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
  ) do |s|
    s.path(fill: '#e70013', d: 'M0 0h512v512H0z')
    s.path(
      fill: '#fff',
      d:
        'M256 135a1 1 0 0 0-1 240 1 1 0 0 0 0-241zm72 174a90 90 0 1 1 0-107 72 72 0 1 0 0 107m-4.7-21.7-37.4-12.1-23.1 31.8v-39.3l-37.3-12.2 37.3-12.2v-39.4l23.1 31.9 37.4-12.1-23.1 31.8z'
    )
  end
end