Skip to content

Commit

Permalink
Merge pull request #6 from voxik/master
Browse files Browse the repository at this point in the history
Block variables has local scopes in Ruby 1.9.
  • Loading branch information
jkraemer committed May 16, 2012
2 parents 62f4693 + 9c0b877 commit a17d8fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ruby/bin/ferret-browser
Expand Up @@ -16,9 +16,9 @@ opts = OptionParser.new do |opts|
opts.separator "Specific Options:"

opts.on("-h", "--host HOSTNAME",
"Host for web server to bind to (default is all IPs)") { |conf.host| }
"Host for web server to bind to (default is all IPs)") { |host| conf.host = host }
opts.on("-p", "--port NUM",
"Port for web server (defaults to #{conf.port})") { |conf.port| }
"Port for web server (defaults to #{conf.port})") { |port| conf.port = port }
opts.on("-s", "--server NAME",
"Server to force (#{SERVER_OPTIONS.join(', ')}).") { |s| conf.server = s.to_sym }

Expand Down

0 comments on commit a17d8fc

Please sign in to comment.