class ViewComponent::Slot
def method_missing(symbol, *args, &block)
end
end
end
@name
def name
class HeaderComponent < ViewComponent::Base
has_one :header, HeaderComponent
class MyComponent < ViewComponent::Base
Where the component may look like:
on the `HeaderComponent` instance.
calling `header.name` (where `header` is a slot) will call `name`
for example
Allow access to public component methods via the wrapper
def method_missing(symbol, *args, &block) @__vc_component_instance.public_send(symbol, *args, &block) end