Permalink
Browse files

update coding conventions in metal/live

  • Loading branch information...
1 parent f6068f1 commit 5906881c960f8466efef71da3a3394fde445d47c Francesco Rodriguez committed Jul 30, 2012
Showing with 8 additions and 8 deletions.
  1. +8 −8 actionpack/lib/action_controller/metal/live.rb
@@ -47,13 +47,13 @@ def write(string)
def each
while str = @buf.pop
- yield str
+ yield(str)
end
end
def close
super
- @buf.push nil
+ @buf.push(nil)
end
end
@@ -78,7 +78,7 @@ def to_hash
end
def initialize(status = 200, header = {}, body = [])
- header = Header.new self, header
+ header = Header.new(self, header)
super(status, header, body)
end
@@ -89,11 +89,11 @@ def commit!
private
- def build_buffer(response, body)
- buf = Live::Buffer.new response
- body.each { |part| buf.write part }
- buf
- end
+ def build_buffer(response, body)
+ buf = Live::Buffer.new(response)
+ body.each { |part| buf.write(part) }
+ buf
+ end
end
def process(name)

0 comments on commit 5906881

Please sign in to comment.