Class: PhlexIcons::Flag::Ml
- Inherits:
-
Base
- Object
- Phlex::SVG
- Base
- PhlexIcons::Flag::Ml
show all
- Defined in:
- lib/phlex-icons/flag/ml.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/ml.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') do
s.path(fill: 'red', d: 'M425.8 0H640v480H425.7z')
s.path(fill: '#009a00', d: 'M0 0h212.9v480H0z')
s.path(fill: '#ff0', d: 'M212.9 0h214v480h-214z')
end
end
end
|
#square ⇒ Object
6
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/phlex-icons/flag/ml.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') do
s.path(fill: 'red', d: 'M340.6 0H512v512H340.6z')
s.path(fill: '#009a00', d: 'M0 0h170.3v512H0z')
s.path(fill: '#ff0', d: 'M170.3 0h171.2v512H170.3z')
end
end
end
|