Module: PgGraph::PrivatePgGraph
- Defined in:
- lib/pg_graph.rb
Overview
Non-public namespace
Class Method Summary collapse
-
.extract_reflections(args) ⇒ Object
Note that this changes the
argsargument.
Class Method Details
.extract_reflections(args) ⇒ Object
Note that this changes the args argument
118 119 120 121 122 123 124 125 126 |
# File 'lib/pg_graph.rb', line 118 def self.extract_reflections(args) if args.last.is_a?(Hash) reflections = args.last.delete(:reflections) || [] args.pop if args.last.empty? && !reflections.empty? reflections else [] end end |