Module: AdjustableSchema::Config::Naming

Includes:
Memery
Defined in:
lib/adjustable_schema/config.rb

Instance Method Summary collapse

Instance Method Details

#opposite(to:) ⇒ Object



30
31
32
# File 'lib/adjustable_schema/config.rb', line 30

def opposite to:
	grep_v(to).sole
end

#recursiveObject



24
25
26
27
28
# File 'lib/adjustable_schema/config.rb', line 24

def recursive
	config.values.to_h do
		[ _1[:self].to_s.pluralize.to_sym, _1[:recursive].to_sym ]
	end
end

#selfObject



22
# File 'lib/adjustable_schema/config.rb', line 22

def self = config :self