Sha256: e2cf237891e8813ec30a6f8c8eb081a1549fb18fdad209ec7194aba4593a5eca
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 KB
Contents
module Slideshow class Opts def generate=(value) @generate = value end def generate? return false if @generate.nil? # default generate flag is false @generate == true end def list=(value) @list = value end def list? return false if @list.nil? # default list flag is false @list == true end def fetch_uri=(value) @fetch_uri = value end def fetch_uri @fetch_uri || '-fetch uri required-' end def fetch? @fetch_uri.nil? ? false : true end def includes=(value) @includes = value end def includes # fix: use os-agnostic delimiter (use : for Mac/Unix?) @includes.nil? ? [] : @includes.split( ';' ) end def has_includes? @includes.nil? ? false : true end def manifest=(value) @manifest = value end def manifest @manifest || 's6.txt' end def config_path=(value) @config_path = value end def config_path @config_path end def output_path=(value) @output_path = value end def output_path @output_path || '.' end end # class Opts end # module Slideshow
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
slideshow-1.1.0.beta8 | lib/slideshow/opts.rb |
slideshow-1.1.0.beta7 | lib/slideshow/opts.rb |
slideshow-1.1.0.beta6 | lib/slideshow/opts.rb |