Class: Ditto::Options

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

Constant Summary collapse

DEFAULT_CONNSTRING =
"user/password@//localhost:1521/test"

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#connstringObject (readonly)

Returns the value of attribute connstring.



6
7
8
# File 'lib/ditto/options.rb', line 6

def connstring
  @connstring
end

#files_to_loadObject (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