lib/slideshow/cli/opts.rb in slideshow-1.2.1 vs lib/slideshow/cli/opts.rb in slideshow-1.2.2

- old
+ new

@@ -10,10 +10,29 @@ def header_level ## todo: check 0 is not nil? @header_level || 1 end + def slide=(boolean) + @slide = boolean + end + + def slide? + return false if @slide.nil? # default slide flag is false + @slide == true + end + + def takahashi=(boolean) + @takahashi = boolean + end + + def takahashi? + return false if @takahashi.nil? # default takahashi flag is false + @takahashi == true + end + + def quick=(boolean) @quick = boolean end def quick? @@ -56,9 +75,17 @@ def list? return false if @list.nil? # default list flag is false @list == true end + def fetch_all=(boolean) + @fetch_all = boolean + end + + def fetch_all? + return false if @fetch_all.nil? # default fetch all flag is false + @fetch_all == true + end def fetch_uri=(value) @fetch_uri = value end \ No newline at end of file