0.0.4 • Published 5 years ago

wilde-icons-gem v0.0.4

Weekly downloads
17
License
-
Repository
-
Last release
5 years ago

wilde-icons-gem

Gem Version

A ruby package containing the set of icons included in wilde, to be used within the scope of Ruby applications.

Installation

NOTE: This GEM is not published yet

Add this to your Gemfile

gem 'wilde-icons'

Then bundle install.

Usage

The library exposes a class called WildeIcon. To create an instance of the class:

icon = WildeIcons::WildeIcon.new("name_of_the_symbol")

The constructor takes two arguments:

symbol (required)

The name of the icon for the wilde icons catalog. If not provided, the creation of the object will raise an exception.

params

  • classes : a string containing the classes to be applied to the svg tag
  • width : the width of the icon
  • height : the height of the icon

How it works

The node package wilde-icons is installed as dependency. This package exposes a json with a collection of icon representations with four attributes: name, path, width and height. The goal of the library is to create flexible svgs with the contents of the collection. For a given name, it takes the path and the size of the icon and creates a string containing the svg element with the proper viewBox, width and height.

Development

Install the dependencies:

npm install
bundle install

Run the tests:

rake

Release

TODO

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago