Sha256: 23a1ccb08f963e23d672eba577f9c28cfdf8bcf41bb6034958fe4fbee62fd8c4
Contents?: true
Size: 931 Bytes
Versions: 2
Compression:
Stored size: 931 Bytes
Contents
# Listless Listless is an example gem created for a series of blog posts about [how to make a rubygem](http://www.alexedwards.net/blog/how-to-make-a-rubygem), and not intended for production use. It provides a helper method to convert a Ruby Array into a HMTL unordered list. ## Installation Add this line to your application's Gemfile: gem 'listless' And then execute: $ bundle Or install it yourself as: $ gem install listless ## Usage Require the Gem: require 'listless' ### Creating unordered lists You can create an unordered list from an Array using the `ul` method. For example: Listless.ul ['foo', 'bar'] #=> "<ul><li>foo</li><li>bar</li></ul>" ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
listless-0.1.0 | README.md |
listless-0.0.1 | README.md |