Class: Y2Network::Widgets::RouteOptions
- Inherits:
-
CWM::InputField
- Object
- CWM::InputField
- Y2Network::Widgets::RouteOptions
- Defined in:
- src/lib/y2network/widgets/route_options.rb
Instance Method Summary collapse
- #help ⇒ Object
- #init ⇒ Object
-
#initialize(route) ⇒ RouteOptions
constructor
A new instance of RouteOptions.
- #label ⇒ Object
- #opt ⇒ Object
- #store ⇒ Object
Constructor Details
#initialize(route) ⇒ RouteOptions
Returns a new instance of RouteOptions.
29 30 31 32 33 |
# File 'src/lib/y2network/widgets/route_options.rb', line 29 def initialize(route) textdomain "network" @route = route end |
Instance Method Details
#help ⇒ Object
39 40 41 42 43 44 |
# File 'src/lib/y2network/widgets/route_options.rb', line 39 def help _( "<p><b>Options</b> specifies additional options for route. It is directly passed " \ "to <i>ip route add</i> with exception of <i>to</i>,<i>via</i> and <i>dev</i>." ) end |
#init ⇒ Object
50 51 52 |
# File 'src/lib/y2network/widgets/route_options.rb', line 50 def init self.value = @route. end |
#label ⇒ Object
35 36 37 |
# File 'src/lib/y2network/widgets/route_options.rb', line 35 def label Yast::Label.Options end |
#opt ⇒ Object
46 47 48 |
# File 'src/lib/y2network/widgets/route_options.rb', line 46 def opt [:hstretch] end |
#store ⇒ Object
54 55 56 |
# File 'src/lib/y2network/widgets/route_options.rb', line 54 def store @route. = value end |