Class: JsxRosetta::IR::RouteEntry
- Inherits:
-
Data
- Object
- Data
- JsxRosetta::IR::RouteEntry
- Includes:
- Node
- Defined in:
- lib/jsx_rosetta/ir/types.rb
Overview
A single React Router route entry.
path : String — the JSX path attribute verbatim (e.g. “/posts/:id”). element_name : String — the JSX element name from element=/>
(e.g. "PostShow"). Member-expression forms ("Layout.Index")
are flattened to the rightmost name.
Instance Attribute Summary collapse
-
#element_name ⇒ Object
readonly
Returns the value of attribute element_name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Attribute Details
#element_name ⇒ Object (readonly)
Returns the value of attribute element_name
245 246 247 |
# File 'lib/jsx_rosetta/ir/types.rb', line 245 def element_name @element_name end |
#path ⇒ Object (readonly)
Returns the value of attribute path
245 246 247 |
# File 'lib/jsx_rosetta/ir/types.rb', line 245 def path @path end |