Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Defined In |
---|---|---|---|---|---|---|
Can be instantiated | No | Experimental | No | Forbidden | Permitted | ur.schema.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Scorpio | |
module Errors | |
class HTTPError < StandardError | |
end | |
end | |
end | |
module Scorpio | |
include Errors # ⬅️ defines Scorpio::HTTPError (or does it?) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "nonacat" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'jsi' | |
# db/model setup | |
require 'active_record' | |
dbpath = Pathname.new("tmp.sqlite3") | |
dbpath.unlink if dbpath.exist? | |
at_exit { dbpath.unlink } | |
ActiveRecord::Base.establish_connection( | |
:adapter => "sqlite3", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup | |
require 'active_record' | |
require 'arms' | |
dbfile = "foos.sqlite3" | |
File.unlink(dbfile) if File.exist?(dbfile) | |
ActiveRecord::Base.establish_connection({ | |
:adapter => "sqlite3", | |
:database => dbfile, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup | |
require 'active_record' | |
require 'arms' | |
ActiveRecord::Base.establish_connection( | |
:adapter => "sqlite3", | |
:database => "foos.sqlite3" | |
) | |
ActiveRecord::Schema.define do |
I hereby claim:
- I am notethan on github.
- I am ethan_ (https://keybase.io/ethan_) on keybase.
- I have a public key ASDFFSljCgsbTPXlUCJ4lg-BQwk_sJkKbZhT3MkiPP20wAo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description: "A Contact" | |
type: "object" | |
properties: | |
name: {type: "string"} | |
phone: | |
type: "array" | |
items: | |
type: "object" | |
properties: | |
location: {type: "string"} |