Class: Getch::Options
- Inherits:
-
Object
- Object
- Getch::Options
- Defined in:
- lib/getch/options.rb
Instance Attribute Summary collapse
-
#disk ⇒ Object
readonly
Returns the value of attribute disk.
-
#fs ⇒ Object
readonly
Returns the value of attribute fs.
-
#keyboard ⇒ Object
readonly
Returns the value of attribute keyboard.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
-
#zoneinfo ⇒ Object
readonly
Returns the value of attribute zoneinfo.
Instance Method Summary collapse
-
#initialize(default, argv) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(default, argv) ⇒ Options
Returns a new instance of Options.
7 8 9 10 11 12 13 14 15 |
# File 'lib/getch/options.rb', line 7 def initialize(default, argv) @language = default[:language] @zoneinfo = default[:location] @keyboard = default[:keyboard] @disk = default[:disk] @fs = default[:fs] @username = default[:username] parse(argv) end |
Instance Attribute Details
#disk ⇒ Object (readonly)
Returns the value of attribute disk.
5 6 7 |
# File 'lib/getch/options.rb', line 5 def disk @disk end |
#fs ⇒ Object (readonly)
Returns the value of attribute fs.
5 6 7 |
# File 'lib/getch/options.rb', line 5 def fs @fs end |
#keyboard ⇒ Object (readonly)
Returns the value of attribute keyboard.
5 6 7 |
# File 'lib/getch/options.rb', line 5 def keyboard @keyboard end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
5 6 7 |
# File 'lib/getch/options.rb', line 5 def language @language end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
5 6 7 |
# File 'lib/getch/options.rb', line 5 def username @username end |
#zoneinfo ⇒ Object (readonly)
Returns the value of attribute zoneinfo.
5 6 7 |
# File 'lib/getch/options.rb', line 5 def zoneinfo @zoneinfo end |