Class: DrJekyll::Opts
- Inherits:
-
Object
- Object
- DrJekyll::Opts
- Defined in:
- lib/drjekyll/cli/opts.rb
Instance Method Summary collapse
- #local=(boolean) ⇒ Object
- #local? ⇒ Boolean
- #merge_gli_options!(options = {}) ⇒ Object
-
#verbose=(boolean) ⇒ Object
add: alias for debug ??.
- #verbose? ⇒ Boolean
Instance Method Details
#local=(boolean) ⇒ Object
22 23 24 |
# File 'lib/drjekyll/cli/opts.rb', line 22 def local=(boolean) @local = boolean end |
#local? ⇒ Boolean
26 27 28 29 |
# File 'lib/drjekyll/cli/opts.rb', line 26 def local? return false if @local.nil? # default verbose/debug flag is false @local == true end |
#merge_gli_options!(options = {}) ⇒ Object
7 8 9 10 |
# File 'lib/drjekyll/cli/opts.rb', line 7 def ( = {} ) @local = true if [:local] == true @verbose = true if [:verbose] == true end |
#verbose=(boolean) ⇒ Object
add: alias for debug ??
13 14 15 |
# File 'lib/drjekyll/cli/opts.rb', line 13 def verbose=(boolean) # add: alias for debug ?? @verbose = boolean end |
#verbose? ⇒ Boolean
17 18 19 20 |
# File 'lib/drjekyll/cli/opts.rb', line 17 def verbose? return false if @verbose.nil? # default verbose/debug flag is false @verbose == true end |