Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

A couple quick fixes to RawEcho #26

Merged
merged 1 commit into from

2 participants

@Benabik
  • = and == mean different things
  • don't yield without a block
@Benabik Benabik Fix a couple errors in RawEchoServer
* = and == mean different things
* don't yield without a block
14c6912
@cs253 cs253 merged commit 6c2c770 into cs253:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 13, 2012
  1. @Benabik

    Fix a couple errors in RawEchoServer

    Benabik authored
    * = and == mean different things
    * don't yield without a block
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 rocs/raw_echo_server.rb
View
4 rocs/raw_echo_server.rb
@@ -11,11 +11,11 @@ def start
end
def initialize
@port = 8080
- yield self
+ yield self if block_given?
end
end
# Start a server if run as a script
-if $0 = __FILE__
+if $0 == __FILE__
RawEchoServer.new.start
end
Something went wrong with that request. Please try again.