Class: Ditto::Options
- Inherits:
-
Object
- Object
- Ditto::Options
- Defined in:
- lib/ditto/options.rb
Constant Summary collapse
- DEFAULT_CONNSTRING =
"user/password@//localhost:1521/test"
Instance Attribute Summary collapse
-
#connstring ⇒ Object
readonly
Returns the value of attribute connstring.
-
#files_to_load ⇒ Object
readonly
Returns the value of attribute files_to_load.
Instance Method Summary collapse
-
#initialize(argv) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(argv) ⇒ Options
Returns a new instance of Options.
7 8 9 10 11 |
# File 'lib/ditto/options.rb', line 7 def initialize(argv) @connstring = DEFAULT_CONNSTRING parse(argv) @files_to_load = argv end |
Instance Attribute Details
#connstring ⇒ Object (readonly)
Returns the value of attribute connstring.
6 7 8 |
# File 'lib/ditto/options.rb', line 6 def connstring @connstring end |
#files_to_load ⇒ Object (readonly)
Returns the value of attribute files_to_load.
6 7 8 |
# File 'lib/ditto/options.rb', line 6 def files_to_load @files_to_load end |