Class: SportDB::Opts
- Inherits:
-
Object
- Object
- SportDB::Opts
- Defined in:
- lib/sportdb/cli/opts.rb
Instance Method Summary collapse
- #create=(boolean) ⇒ Object
- #create? ⇒ Boolean
- #data_path ⇒ Object
- #data_path=(value) ⇒ Object
- #output_path ⇒ Object
- #output_path=(value) ⇒ Object
Instance Method Details
#create=(boolean) ⇒ Object
5 6 7 |
# File 'lib/sportdb/cli/opts.rb', line 5 def create=(boolean) @create = boolean end |
#create? ⇒ Boolean
9 10 11 12 |
# File 'lib/sportdb/cli/opts.rb', line 9 def create? return false if @create.nil? # default create flag is false @create == true end |
#data_path ⇒ Object
28 29 30 |
# File 'lib/sportdb/cli/opts.rb', line 28 def data_path @data_path || '.' end |
#data_path=(value) ⇒ Object
24 25 26 |
# File 'lib/sportdb/cli/opts.rb', line 24 def data_path=(value) @data_path = value end |
#output_path ⇒ Object
19 20 21 |
# File 'lib/sportdb/cli/opts.rb', line 19 def output_path @output_path || '.' end |
#output_path=(value) ⇒ Object
15 16 17 |
# File 'lib/sportdb/cli/opts.rb', line 15 def output_path=(value) @output_path = value end |