Sha256: ed95a9a0f0a3c7270b105411a2c7f6f6d8d6280391ce6a5a875d416753c85e96
Contents?: true
Size: 635 Bytes
Versions: 1
Compression:
Stored size: 635 Bytes
Contents
module SportDB class Opts def create=(boolean) @create = boolean end def create? return false if @create.nil? # default create flag is false @create == true end # use loader? (that is, built-in seed data) def load=(boolean) @load = boolean end def load? return false if @load.nil? # default create flag is false @load == true end def output_path=(value) @output_path = value end def output_path @output_path || '.' end def data_path=(value) @data_path = value end def data_path @data_path || '.' end end # class Opts end # module SportDB
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sportdb-0.2.0 | lib/sportdb/cli/opts.rb |