README.md in sublime_sunippetter-0.0.4 vs README.md in sublime_sunippetter-0.0.5
- old
+ new
@@ -51,10 +51,12 @@
add :hige
# if two args method and do-block
add :hoge1, :args1, :args2, "block@d"
# if two args method and brace-block
add :hoge2, :args1, :args2, "block@b"
+# requires
+add_requires 'hoge', 'hige'
~~~
Third, you have to do is execute command 'suni'.
suni
@@ -113,16 +115,43 @@
<scope>source.ruby</scope>
<description>hoge2 method</description>
</snippet>
~~~
+And
+
+~~~xml
+<snippet>
+ <content><![CDATA[
+require 'hoge'
+]]></content>
+ <tabTrigger>require hoge</tabTrigger>
+ <scope>source.java</scope>
+ <description>require hoge</description>
+</snippet>
+~~~
+
+And
+
+~~~xml
+<snippet>
+ <content><![CDATA[
+require 'hige'
+]]></content>
+ <tabTrigger>require hige</tabTrigger>
+ <scope>source.ruby</scope>
+ <description>require hige</description>
+</snippet>
+~~~
+
in 'C:/Users/user_name/AppData/Roaming/Sublime Text 2/Packages/User' directory.
## Use Generated Sunippet
<img src="./doc_image/sublime_sunippetter.gif" />
## History
+* version 0.0.5 : enable require 'filename' generate.
* version 0.0.4 : enable do-block, brace-block generate.
* version 0.0.3 : question can use. for ex 'blank?'.
* version 0.0.1 : first release.
## Contributing