Class: Blacklight::Icons::LineComponent
- Inherits:
-
IconComponent
- Object
- IconComponent
- Blacklight::Icons::LineComponent
- Defined in:
- app/components/blacklight/icons/line_component.rb
Instance Method Summary collapse
Instance Method Details
#svg ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'app/components/blacklight/icons/line_component.rb', line 8 def svg " <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\">\n <title>\#{title}</title>\n <path fill=\"none\" stroke=\"#6c757d\" stroke-miterlimit=\"10\" stroke-width=\"1.52\" d=\"M24.9.76h6.34v6.33h-6.33V.76zM.76 24.9h6.33v6.34H.76v-6.33z\"/>\n <path fill=\"none\" stroke=\"#6c757d\" stroke-miterlimit=\"10\" stroke-width=\"3.04\" d=\"M7.1 24.9L24.9 7.1\"/>\n </svg>\n SVG\nend\n" |
#title ⇒ Object
18 19 20 21 |
# File 'app/components/blacklight/icons/line_component.rb', line 18 def title key = "blacklight.icon.#{name}" t(key) end |