Sample for Rails plugin gem. MyPlugin adds exclamatize
helper to ActionView.
In View:
exclamatize('hello world', 3) # => "hello world!!!"
exclamatize('hello world') # => "hello world!"
Add this line to your application's Gemfile:
gem 'my_plugin', git: 'https://github.com/takafumir/my_plugin'
And then execute:
$ bundle install
- 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
The gem is available as open source under the terms of the MIT License.