Skip to content

Instantly share code, notes, and snippets.

@ryochin
Last active June 1, 2023 23:32
Show Gist options
  • Save ryochin/d549366dfff61dd1f7e21745a999eb0c to your computer and use it in GitHub Desktop.
Save ryochin/d549366dfff61dd1f7e21745a999eb0c to your computer and use it in GitHub Desktop.
ruby: initial script template
# frozen_string_literal: true
source "https://rubygems.org"
gem 'activesupport'
# frozen_string_literal: true
class Main
require 'logger'
require 'optparse'
require 'active_support'
require 'active_support/core_ext'
def initialize
@params = ARGV.getopts('v')
# -v: verbose
@logger = Logger.new($stdout)
end
def run
@logger.debug 'run'
end
private
end
Main.new.run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment