Class: Getch::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/getch/options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#diskObject (readonly)

Returns the value of attribute disk.



5
6
7
# File 'lib/getch/options.rb', line 5

def disk
  @disk
end

#fsObject (readonly)

Returns the value of attribute fs.



5
6
7
# File 'lib/getch/options.rb', line 5

def fs
  @fs
end

#keyboardObject (readonly)

Returns the value of attribute keyboard.



5
6
7
# File 'lib/getch/options.rb', line 5

def keyboard
  @keyboard
end

#languageObject (readonly)

Returns the value of attribute language.



5
6
7
# File 'lib/getch/options.rb', line 5

def language
  @language
end

#usernameObject (readonly)

Returns the value of attribute username.



5
6
7
# File 'lib/getch/options.rb', line 5

def username
  @username
end

#zoneinfoObject (readonly)

Returns the value of attribute zoneinfo.



5
6
7
# File 'lib/getch/options.rb', line 5

def zoneinfo
  @zoneinfo
end