Method: RdfContext::N3Parser#process_path_list

Defined in:
lib/rdf_context/n3parser.rb

#process_path_list(path, reverse) ⇒ Object (protected)

Returns array of [:forward/:reverse, element] pairs



261
262
263
264
265
266
267
268
# File 'lib/rdf_context/n3parser.rb', line 261

def process_path_list(path, reverse)
  add_debug(*path.info("process_path_list(#{reverse})"))
  if path.respond_to?(:pathitem)
    [[reverse, process_expression(path.pathitem)]] + process_path_list(path.expression, path.respond_to?(:reverse))
  else
    [[reverse, process_expression(path)]]
  end
end