Class: PhlexIcons::Flag::Jm

Inherits:
Base
  • Object
show all
Defined in:
lib/phlex-icons/flag/jm.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



19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/phlex-icons/flag/jm.rb', line 19

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: '#000001', d: 'm0 0 320 240L0 480zm640 0L320 240l320 240z')
      s.path(fill: '#090', d: 'm0 0 320 240L640 0zm0 480 320-240 320 240z')
      s.path(fill: '#fc0', d: 'M640 0h-59.6L0 435.3V480h59.6L640 44.7z')
      s.path(fill: '#fc0', d: 'M0 0v44.7L580.4 480H640v-44.7L59.6 0z')
    end
  end
end

#squareObject



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/phlex-icons/flag/jm.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: '#000001', d: 'm0 0 256 256L0 512zm512 0L256 256l256 256z')
      s.path(fill: '#090', d: 'm0 0 256 256L512 0zm0 512 256-256 256 256z')
      s.path(fill: '#fc0', d: 'M512 0h-47.7L0 464.3V512h47.7L512 47.7z')
      s.path(fill: '#fc0', d: 'M0 0v47.7L464.3 512H512v-47.7L47.7 0z')
    end
  end
end