Skip to content

Instantly share code, notes, and snippets.

@tpitale tpitale/results.txt
Last active Aug 29, 2015

Embed
What would you like to do?
Required: dm-core
Is inherited public or private in A
public
Required: dm-active_model
Is inherited public or private in B
public
Required: dm-rails
Is inherited public or private in C
public
Required: dm-types
Is inherited public or private in D
public
Required: dm-do-adapter
Is inherited public or private in E
public
Required: dm-postgres-adapter
Is inherited public or private in F
public
Required: dm-migrations
Is inherited public or private in G
public
Required: dm-validations
Is inherited public or private in H
private
Required: dm-constraints
Is inherited public or private in I
private
Required: dm-aggregates
Is inherited public or private in J
private
Required: dm-timestamps
Is inherited public or private in L
private
Required: dm-transactions
Is inherited public or private in M
private
Required: dm-adjust
Is inherited public or private in N
private
Required: dm-is-list
Is inherited public or private in O
private
require 'bundler'
Bundler.setup
require 'rails'
require 'protected_attributes'
require 'responders'
A = Class.new
B = Class.new
C = Class.new
D = Class.new
E = Class.new
F = Class.new
G = Class.new
H = Class.new
I = Class.new
J = Class.new
L = Class.new
M = Class.new
N = Class.new
O = Class.new
letter = [A,B,C,D,E,F,G,H,I,J,L,M,N,O].each
[
'dm-core',
'dm-active_model',
'dm-rails',
'dm-types',
'dm-do-adapter',
'dm-postgres-adapter',
'dm-migrations',
'dm-validations',
'dm-constraints',
'dm-aggregates',
'dm-timestamps',
'dm-transactions',
'dm-adjust',
'dm-is-list'
].each do |dm_gem|
require dm_gem
puts "Required: #{dm_gem}"
klass = letter.next
klass.class_eval do
include DataMapper::Resource
end
puts "Is inherited public or private in #{klass}"
puts 'private' if klass.private_methods.include?(:inherited)
puts 'public' if klass.public_methods.include?(:inherited)
puts
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.