Sha256: ea139d6e40f4b7c7c9eb9131b706e7150c82352c618b845583a928611559c99f

Contents?: true

Size: 224 Bytes

Versions: 3

Compression:

Stored size: 224 Bytes

Contents

module PgObjects
  class Parser
    class << self
      def fetch_dependencies(text)
        text.split("\n").select { |ln| ln =~ /^(--|#)!/ }.map { |ln| ln.split(' ')[1] if ln =~ /!depends_on/ }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pg_objects-0.2.4 lib/pg_objects/parser.rb
pg_objects-0.2.3 lib/pg_objects/parser.rb
pg_objects-0.2.1 lib/pg_objects/parser.rb