stringer

Useful utilities patched on top of the lovely crystal's String.

stringer

Useful utilities patched on top of the lovely crystal's String.

Photo by Thomas Kelley on Unsplash

Project Health Status

CircleCI

Getting Started

Add the dependency to your shard.yml:

dependencies:
  stringer:
    github: cmd-coffee/stringer

Install your shards:

> shards install

Require it:

require "stringer"

Strum along:

strum = "The quick brown fox jumps over the lazy dog"
strum.truncate(28) # => "The quick brown fox jumps..."

strum = "  some \t\n messy\ttxt \n\t   "
strum.squish # => "some messy txt"

Contributing

  1. Fork it (https://github.com/cmd-coffee/stringer/fork)
  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 a new Pull Request
Repository

stringer

Owner
Statistic
  • 1
  • 0
  • 0
  • 1
  • 0
  • over 5 years ago
  • June 21, 2019
License

MIT License

Links
Synced at

Fri, 08 Nov 2024 03:40:18 GMT

Languages