Class: AblyUi::Core::MeganavControlMobilePanelClose

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
lib/ably_ui/core/meganav_control_mobile_panel_close/meganav_control_mobile_panel_close.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(aria_controls:, display_hr: true) ⇒ MeganavControlMobilePanelClose

Returns a new instance of MeganavControlMobilePanelClose.



6
7
8
9
# File 'lib/ably_ui/core/meganav_control_mobile_panel_close/meganav_control_mobile_panel_close.rb', line 6

def initialize(aria_controls:, display_hr: true)
  @aria_controls = aria_controls
  @display_hr = display_hr
end

Instance Attribute Details

#aria_controlsObject (readonly)

Returns the value of attribute aria_controls.



4
5
6
# File 'lib/ably_ui/core/meganav_control_mobile_panel_close/meganav_control_mobile_panel_close.rb', line 4

def aria_controls
  @aria_controls
end

#display_hrObject (readonly)

Returns the value of attribute display_hr.



4
5
6
# File 'lib/ably_ui/core/meganav_control_mobile_panel_close/meganav_control_mobile_panel_close.rb', line 4

def display_hr
  @display_hr
end