MyPlugin
Sample for Rails plugin gem. MyPlugin adds exclamatize
helper to ActionView.
Usage
In View:
exclamatize('hello world', 3) # => "hello world!!!"
exclamatize('hello world') # => "hello world!"
Installation
Add this line to your application's Gemfile:
gem 'my_plugin', git: 'https://github.com/takafumir/my_plugin'
And then execute:
$ bundle install
Contributing
- Fork it ( https://github.com/takafumir/my_plugin/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
License
The gem is available as open source under the terms of the MIT License.