Class: Ruact::Flight::ClientReference

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameObject (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_idObject (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