Class: Y2Network::Widgets::S390Attributes
- Inherits:
-
CWM::InputField
- Object
- CWM::InputField
- Y2Network::Widgets::S390Attributes
- Defined in:
- src/lib/y2network/widgets/s390_common.rb
Overview
This widget permits to pass defined any extra attribute to set during Qeth device activation
Instance Method Summary collapse
- #help ⇒ Object
- #init ⇒ Object
-
#initialize(settings) ⇒ S390Attributes
constructor
Constructor.
- #label ⇒ Object
- #opt ⇒ Object
- #store ⇒ Object
Constructor Details
#initialize(settings) ⇒ S390Attributes
Constructor
148 149 150 151 |
# File 'src/lib/y2network/widgets/s390_common.rb', line 148 def initialize(settings) textdomain "network" @settings = settings end |
Instance Method Details
#help ⇒ Object
169 170 171 172 |
# File 'src/lib/y2network/widgets/s390_common.rb', line 169 def help # TRANSLATORS: S/390 dialog help for QETH Options _("<p>Enter any additional <b>Options</b> for this interface (separated by spaces).</p>") end |
#init ⇒ Object
159 160 161 |
# File 'src/lib/y2network/widgets/s390_common.rb', line 159 def init self.value = @settings.attributes end |
#label ⇒ Object
154 155 156 |
# File 'src/lib/y2network/widgets/s390_common.rb', line 154 def label _("Options") end |
#opt ⇒ Object
164 165 166 |
# File 'src/lib/y2network/widgets/s390_common.rb', line 164 def opt [:hstretch] end |
#store ⇒ Object
175 176 177 |
# File 'src/lib/y2network/widgets/s390_common.rb', line 175 def store @settings.attributes = value end |