Class: Bootloader::Grub2Widget::HiddenMenuWidget

Inherits:
CWM::CheckBox
  • Object
show all
Includes:
Grub2Helper
Defined in:
src/lib/bootloader/grub2_widgets.rb

Overview

Represents decision if menu should be hidden or visible

Instance Method Summary collapse

Methods included from Grub2Helper

#grub2, #grub_default, #password, #stage1

Constructor Details

#initializeHiddenMenuWidget



158
159
160
161
162
# File 'src/lib/bootloader/grub2_widgets.rb', line 158

def initialize
  textdomain "bootloader"

  super
end

Instance Method Details

#helpObject



168
169
170
171
172
# File 'src/lib/bootloader/grub2_widgets.rb', line 168

def help
  _(
    "<p>Selecting <b>Hide Menu on Boot</b> will hide the boot menu.</p>"
  )
end

#initObject



174
175
176
# File 'src/lib/bootloader/grub2_widgets.rb', line 174

def init
  self.value = grub_default.hidden_timeout && grub_default.hidden_timeout.to_i > 0
end

#labelObject



164
165
166
# File 'src/lib/bootloader/grub2_widgets.rb', line 164

def label
  _("&Hide Menu on Boot")
end