class Gi::Api
Public Instance Methods
ignores(suf)
click to toggle source
# File lib/gi.rb, line 15 def ignores(suf) cmd = "curl -L -s http://gitignore.io/api/#{suf}" return cmd end
list_all()
click to toggle source
def base(suf) “curl -L -s gitignore.io/api/#{suf}” end
# File lib/gi.rb, line 9 def list_all puts `curl -L -s http://gitignore.io/api/list` end
list_and_find(search_terms)
click to toggle source
# File lib/gi.rb, line 12 def list_and_find(search_terms) puts `curl -L -s http://gitignore.io/api/list | grep #{search_terms}` end