Permalink
Browse files

Fix camping-vs-sinatra.rb with preserving style

  • Loading branch information...
1 parent c35a84a commit d5672087f4fd47b06cecfb306bb8bc3d46227e16 @toraritte committed Mar 27, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 content/camping-vs-sinatra.rb
@@ -181,8 +181,8 @@ def post
%%%%% end
''
''
-BEGIN {def Object.const_missing(m);m.to_s end;def method_missing(*a)a[1]=
-$h.pop if a[1]==$h;$h.push(a) end;$h = [];def reasons; $reas ||= {};end;''
+BEGIN{def Object.const_missing(m);m.to_s end;def self.method_missing(*a)''
+a[1]= $h.pop if a[1]==$h;$h.push(a) end;$h=[];def reasons;$r ||= {};end;''
def reasons.push(r,&b);self[r]=b.call;end;END {puts h=$h*' ','='*h.size,''
reasons.each { |name, val| puts name, '-'*name.size, val.gsub(/^ /,''),''
''

0 comments on commit d567208

Please sign in to comment.