GitXplorerGitXplorer
a

left_pad

public
24 stars
1 forks
3 issues

Commits

List of commits on branch master.
Unverified
319e3516c2d151e4316244d72e524742044b97ca

Move spec to the proper location

aatipugin committed 9 years ago
Unverified
2ee3907e8293df4617d805f0f4d7b7993bf96c98

Merge pull request #2 from disem/patch-1

aatipugin committed 9 years ago
Unverified
16d27ef8b6146797d63a7118e49f4740eaae835e

Update README.md

ddmitry-semenov committed 9 years ago
Unverified
2b047c69de1739a87761c9fcd6f686fbd80aad39

Merge pull request #1 from dotzero/patch-1

aatipugin committed 9 years ago
Unverified
8f63374171eaf3a711f8645823562492f63b6b0e

Create LICENSE

ddotzero committed 9 years ago
Unverified
e5ea09cecd5bf66e963fe40eebfc817bf061cb14

Update README.md

aatipugin committed 9 years ago

README

The README file for this repository.

left_pad

Gem Version Code Climate Build Status

Ruby implementation of famous npm package.

Installation

Add following line to your Gemfile:

gem 'left_pad'

And then execute:

$ bundle

Or install it system-wide:

$ gem install left_pad

Usage

Simple as that:

require 'left_pad'

'foo'.leftpad(5)
# => "  foo"

'foobar'.leftpad(6)
# => "foobar"

String(1).leftpad(2, 0)
# => "01"

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

P.S.

Don't take it seriously. It's just a joke ;)