Class: PhlexIcons::Flag::Co
- Inherits:
-
Base
- Object
- Phlex::SVG
- Base
- PhlexIcons::Flag::Co
show all
- Defined in:
- lib/phlex-icons/flag/co.rb
Instance Attribute Summary
Attributes inherited from Base
#attrs
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #view_template
Instance Method Details
#rectangle ⇒ Object
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/phlex-icons/flag/co.rb', line 18
def rectangle
svg(
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
) do |s|
s.g(fill_rule: 'evenodd', stroke_width: '1pt') do
s.path(fill: '#ffe800', d: 'M0 0h640v480H0z')
s.path(fill: '#00148e', d: 'M0 240h640v240H0z')
s.path(fill: '#da0010', d: 'M0 360h640v120H0z')
end
end
end
|
#square ⇒ Object
6
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/phlex-icons/flag/co.rb', line 6
def square
svg(
**attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
) do |s|
s.g(fill_rule: 'evenodd', stroke_width: '1pt') do
s.path(fill: '#ffe800', d: 'M0 0h512v512H0z')
s.path(fill: '#00148e', d: 'M0 256h512v256H0z')
s.path(fill: '#da0010', d: 'M0 384h512v128H0z')
end
end
end
|