Class: PhlexIcons::Flag::Ic
- Inherits:
-
Base
- Object
- Phlex::SVG
- Base
- PhlexIcons::Flag::Ic
show all
- Defined in:
- lib/phlex-icons/flag/ic.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/ic.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: '#0768a9', d: 'M0 0h640v480H0z')
s.path(fill: '#fff', d: 'M0 0h213.3v480H0z')
s.path(fill: '#fc0', 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/ic.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: '#0768a9', d: 'M0 0h512v512H0z')
s.path(fill: '#fff', d: 'M0 0h170.7v512H0z')
s.path(fill: '#fc0', d: 'M341.3 0H512v512H341.3z')
end
end
end
|