Module: AblyUi::Core::MeganavConfig

Instance Method Summary collapse

Instance Method Details

#panelsObject



21
22
23
24
25
# File 'lib/ably_ui/core/core.rb', line 21

def panels
  MEGANAV_DATA['panels'].map do |panel|
    panel.deep_transform_keys { |key| key.underscore.to_sym }
  end
end

#theme(style) ⇒ Object



27
28
29
# File 'lib/ably_ui/core/core.rb', line 27

def theme(style)
  themes[@theme_name][style]
end

#theme_setup(theme_name) ⇒ Object



11
12
13
# File 'lib/ably_ui/core/core.rb', line 11

def theme_setup(theme_name)
  @theme_name = theme_name
end

#themesObject



15
16
17
18
19
# File 'lib/ably_ui/core/core.rb', line 15

def themes
  MEGANAV_DATA['themes'].deep_transform_keys do |key|
    key.underscore.to_sym
  end
end