lib/phlex/icons/flag/tw.rb in phlex-icons-0.17.0 vs lib/phlex/icons/flag/tw.rb in phlex-icons-1.0.0
- old
+ new
@@ -5,11 +5,11 @@
module Icons
module Flag
class Tw < Base
def square
svg(
- class: classes, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
+ **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 512 512'
) do |s|
s.clipPath(id: 'tw-a') { s.path(d: 'M0 0h512v512H0z') }
s.g(clip_path: 'url(#tw-a)') do
s.path(fill: 'red', d: 'M0 0h768v512H0z')
s.path(fill: '#000095', d: 'M0 0h384v256H0z')
@@ -82,10 +82,10 @@
end
end
def rectangle
svg(
- class: classes, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
+ **attrs, xmlns: 'http://www.w3.org/2000/svg', viewbox: '0 0 640 480'
) do |s|
s.clipPath(id: 'tw-a') { s.path(d: 'M0 0h640v480H0z') }
s.g(clip_path: 'url(#tw-a)') do
s.path(fill: 'red', d: 'M0 0h720v480H0z')
s.path(fill: '#000095', d: 'M0 0h360v240H0z')