lib/sublime_sunippetter.rb in sublime_sunippetter-0.0.1 vs lib/sublime_sunippetter.rb in sublime_sunippetter-0.0.2
- old
+ new
@@ -49,23 +49,9 @@
snippet = get_snippet(m.method_name , get_args_names(m) , dsl._scope)
File.open("#{dsl._output_path}/#{m.method_name}.sublime-snippet", "w") {|f|f.puts snippet}
end
end
- #== for command prompt.
- # if you execute suni(no-option), generate sublime text2 sunippet.
- #
- # if you execute suni init, generate Sunippetdefine.
- def execute
- sunippet = SublimeSunippetter::Core.new
-
- if $*[0] == "init"
- sunippet.init
- else
- sunippet.generate_sunippets
- end
- end
-
private
def read_sunippetdefine
unless File.exists? "./#{DEFINE_FILE}"
raise SunippetterError.new("you must create #{DEFINE_FILE}. manual or 'suni init' command")
end