Class: Bootloader::Grub2Widget::HiddenMenuWidget
- Inherits:
-
CWM::CheckBox
- Object
- CWM::CheckBox
- Bootloader::Grub2Widget::HiddenMenuWidget
- Includes:
- Grub2Helper
- Defined in:
- src/lib/bootloader/grub2_widgets.rb
Overview
Represents decision if menu should be hidden or visible
Instance Method Summary collapse
- #help ⇒ Object
- #init ⇒ Object
-
#initialize ⇒ HiddenMenuWidget
constructor
A new instance of HiddenMenuWidget.
- #label ⇒ Object
Methods included from Grub2Helper
#grub2, #grub_default, #password, #sections, #stage1
Constructor Details
#initialize ⇒ HiddenMenuWidget
Returns a new instance of HiddenMenuWidget.
160 161 162 163 164 |
# File 'src/lib/bootloader/grub2_widgets.rb', line 160 def initialize textdomain "bootloader" super end |
Instance Method Details
#help ⇒ Object
170 171 172 173 174 |
# File 'src/lib/bootloader/grub2_widgets.rb', line 170 def help _( "<p>Selecting <b>Hide Menu on Boot</b> will hide the boot menu.</p>" ) end |
#init ⇒ Object
176 177 178 |
# File 'src/lib/bootloader/grub2_widgets.rb', line 176 def init self.value = grub_default.hidden_timeout && grub_default.hidden_timeout.to_i > 0 end |
#label ⇒ Object
166 167 168 |
# File 'src/lib/bootloader/grub2_widgets.rb', line 166 def label _("&Hide Menu on Boot") end |