Skip to content

Instantly share code, notes, and snippets.

@vivus-ignis
Created July 13, 2018 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vivus-ignis/d42515115bbef79599ef356b6ba77096 to your computer and use it in GitHub Desktop.
Save vivus-ignis/d42515115bbef79599ef356b6ba77096 to your computer and use it in GitHub Desktop.
Error in src/gist-scout.cr:23: undefined method 'main' for Gist::Scout:Module
Gist::Scout.main
^~~~
require "./gist-scout/*"
require "option_parser"
module Gist::Scout
# creates a config dir, initialize sqlite db if not exists,
# returns db filedes
def init_db(config_dir_path)
end
# returns a list of unseen (not in db) gist ids
def update_cache(github_username, db_filedes)
end
# returns gist text
def get_gist_contents(github_username, gist_id)
end
def main
puts "In main"
end
end
Gist::Scout.main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment