See the Official Guides.
Start a REPL: iex
class CommandParser | |
class OptionsParser | |
def initialize | |
@parsed = nil | |
@buffer = nil | |
@bname = nil | |
end # constructor | |
def parse tokens | |
self.buffer = '' |
$LOAD_PATH.unshift './lib' | |
source_file = ARGV[0] | |
target_file = ARGV[1] | |
puts "Source: #{source_file}" | |
puts "Target: #{target_file}" | |
require 'fileutils' |
ApplicationRecord.connection.execute( | |
<<~SQL | |
CREATE TEMPORARY TABLE IF NOT EXISTS gadgets | |
( | |
id bigint NOT NULL, | |
name varchar(64) NOT NULL | |
); | |
CREATE TEMPORARY SEQUENCE IF NOT EXISTS gadgets_id_seq | |
START WITH 1 |
See the Official Guides.
Start a REPL: iex