Class: JsxRosetta::IR::RouteTree

Inherits:
Data
  • Object
show all
Includes:
Node
Defined in:
lib/jsx_rosetta/ir/types.rb

Overview

A flat list of React Router routes parsed from a router file. Distinct from Component — RouteTree is the top-level result of ‘JsxRosetta::Routes.lower(file)`, not part of a translated component.

routes : [RouteEntry]

Instance Attribute Summary collapse

Instance Attribute Details

#routesObject (readonly)

Returns the value of attribute routes

Returns:

  • (Object)

    the current value of routes



235
236
237
# File 'lib/jsx_rosetta/ir/types.rb', line 235

def routes
  @routes
end