Skip to content

Commit

Permalink
@@global.format is enforced as a Symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
delano committed Apr 29, 2009
1 parent ed1e800 commit 4ed883c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rudy/global.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def initialize
@verbose ||= 0
@nocolor ||= false
@quiet ||= false
@format ||= 'string' # as in, to_s
@format ||= :string # as in, to_s
@print_header = true if @print_header == nil
@yes = false if @yes.nil?
end
Expand Down Expand Up @@ -92,6 +92,7 @@ def postprocess
@cert &&= File.expand_path(@cert)
@privatekey &&= File.expand_path(@privatekey)
@position &&= @position.to_s.rjust(2, '0')
@format &&= @format.to_sym rescue nil

String.disable_color if @nocolor
Rudy.enable_quiet if @quiet
Expand Down

0 comments on commit 4ed883c

Please sign in to comment.