# SublimeSunippetter
SublimeSunippetter is generate Sublime Text2 simple sunippet from Sunippetfile DSL.
2013/11/20 ver 0.01 is still simple. Only single line space separating sunippet is supported.
## Purpose
SublimeSunippetter can use following situations.
* You create dsl for team.
* You create some library for team.
* You create some open-source library.
If you provide sunippets for your users, they appreciate your kindness ...maybe.
## Installation
Add this line to your application's Gemfile:
gem 'sublime_sunippetter'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sublime_sunippetter
## Usage
### Generate
First, you create Sunippetfile manually or following command.
suni init
Second, you have to edit Sunippetfile.
~~~ruby
# encoding: utf-8
# set output path. default=current directory
output_path 'C:/Users/user_name/AppData/Roaming/Sublime Text 2/Packages/User'
# set sunippet scope. default=source.ruby
scope "source.ruby"
# if two args method
add :hoge, :args1, :args2
# if no args method
add :hige
~~~
Third, you have to do is execute command suni.
suni
Result => generate hoge.sublime-snippet, hige.sublime-snippet
This Sample Sunppet Contens are ...
~~~xml
hoge
source.ruby
hoge method
~~~
And
~~~xml
hige
source.ruby
hige method
~~~
in 'C:/Users/user_name/AppData/Roaming/Sublime Text 2/Packages/User' directory.
## Use Generated Sunippet
## History
* version 0.0.3 : question can use. for ex 'blank?'.
* version 0.0.1 : first release.
## 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