Class: Y2Network::Widgets::KernelOptions

Inherits:
CWM::InputField
  • Object
show all
Defined in:
src/lib/y2network/widgets/kernel_options.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ KernelOptions

Constructor


31
32
33
34
# File 'src/lib/y2network/widgets/kernel_options.rb', line 31

def initialize(options)
  textdomain "network"
  @options = options
end

Instance Method Details

#helpObject


40
41
42
43
44
45
46
# File 'src/lib/y2network/widgets/kernel_options.rb', line 40

def help
  _(
    "<p>Additionally, specify <b>Options</b> for the kernel module. Use this\n" \
      "format: <i>option</i>=<i>value</i>. Each entry should be space-separated, for example: <i>io=0x300 irq=5</i>. <b>Note:</b> If two cards are \n" \
      "configured with the same module name, the options will be merged while saving.</p>\n"
  )
end

#initObject


52
53
54
# File 'src/lib/y2network/widgets/kernel_options.rb', line 52

def init
  self.value = @options
end

#labelObject


36
37
38
# File 'src/lib/y2network/widgets/kernel_options.rb', line 36

def label
  Yast::Label.Options
end

#optObject


48
49
50
# File 'src/lib/y2network/widgets/kernel_options.rb', line 48

def opt
  [:hstretch]
end