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 34 |
# File 'src/lib/y2network/widgets/route_options.rb', line 29 def initialize(route) super() textdomain "network" @route = route end |
Instance Method Details
#help ⇒ Object
40 41 42 43 44 45 |
# File 'src/lib/y2network/widgets/route_options.rb', line 40 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
51 52 53 |
# File 'src/lib/y2network/widgets/route_options.rb', line 51 def init self.value = @route. end |
#label ⇒ Object
36 37 38 |
# File 'src/lib/y2network/widgets/route_options.rb', line 36 def label Yast::Label.Options end |
#opt ⇒ Object
47 48 49 |
# File 'src/lib/y2network/widgets/route_options.rb', line 47 def opt [:hstretch] end |
#store ⇒ Object
55 56 57 |
# File 'src/lib/y2network/widgets/route_options.rb', line 55 def store @route. = value end |