Class: Ruact::Flight::ClientReference
- Inherits:
-
Object
- Object
- Ruact::Flight::ClientReference
- Defined in:
- lib/ruact/flight/react_element.rb
Overview
Points to a “use client” module — will become an I row + $L<id> reference.
Instance Attribute Summary collapse
-
#export_name ⇒ Object
readonly
Returns the value of attribute export_name.
-
#module_id ⇒ Object
readonly
Returns the value of attribute module_id.
Instance Method Summary collapse
-
#initialize(module_id:, export_name: "default") ⇒ ClientReference
constructor
A new instance of ClientReference.
Constructor Details
#initialize(module_id:, export_name: "default") ⇒ ClientReference
Returns a new instance of ClientReference.
34 35 36 37 |
# File 'lib/ruact/flight/react_element.rb', line 34 def initialize(module_id:, export_name: "default") @module_id = module_id @export_name = export_name end |
Instance Attribute Details
#export_name ⇒ Object (readonly)
Returns the value of attribute export_name.
32 33 34 |
# File 'lib/ruact/flight/react_element.rb', line 32 def export_name @export_name end |
#module_id ⇒ Object (readonly)
Returns the value of attribute module_id.
32 33 34 |
# File 'lib/ruact/flight/react_element.rb', line 32 def module_id @module_id end |