Class: PhlexIcons::Flag::Gn
- Inherits:
-
Base
- Object
- Phlex::SVG
- Base
- PhlexIcons::Flag::Gn
show all
- Defined in:
- lib/phlex-icons/flag/gn.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/gn.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: 'red', d: 'M0 0h213.3v480H0z')
s.path(fill: '#ff0', d: 'M213.3 0h213.4v480H213.3z')
s.path(fill: '#090', d: 'M426.7 0H640v480H426.7z')
end
end
end
|
#square ⇒ Object
6
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/phlex-icons/flag/gn.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: 'red', d: 'M0 0h170.7v512H0z')
s.path(fill: '#ff0', d: 'M170.7 0h170.6v512H170.7z')
s.path(fill: '#090', d: 'M341.3 0H512v512H341.3z')
end
end
end
|