lib/steamd/parser.rb
def imports
      raise StreamNotParsed, 'you must parse first' if @tree.nil?

      imports = statements.select do |node|
        node.is_a?(ImportStatement)
      end

      imports.map(&:to_hash)
    end
def imports
      raise StreamNotParsed, 'you must parse first' if @tree.nil?

      imports = statements.select do |node|
        node.is_a?(ImportStatement)
      end

      imports.map(&:to_hash)
    end
An array of hashes containing the imports found in the parsed
 Steam Language file.

 The hash is the hash version of ImportStatement

 @example Accessing imports
   parser.imports # => [{filename: 'test'}]

 @return [Array<Hash>] an array of hashes representing the imports found
 @see ImportStatement