Class: DrJekyll::Opts

Inherits:
Object
  • Object
show all
Defined in:
lib/drjekyll/cli/opts.rb

Instance Method Summary collapse

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

Returns:

  • (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 merge_gli_options!( options = {} )
  @local   = true     if options[:local] == true
  @verbose = true     if options[: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

Returns:

  • (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