Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Improve an ugly line of code.

  • Loading branch information...
commit 6803d955bf9dfee4f166af7c4cbb7648ca7ec6ec 1 parent 93ac35f
Manfred Stienstra authored

Showing 1 changed file with 1 addition and 3 deletions. Show diff stats Hide diff stats

  1. 4  lib/shl.rb
4  lib/shl.rb
@@ -8,9 +8,7 @@ def initialize(a)
8 8
       a.each{|k,v|self[k]=v}
9 9
     end
10 10
     def []=(k,v)
11  
-      @_o||=[]
12  
-      @_o<<k
13  
-      super
  11
+      (@_o||=[])<<k;super
14 12
     end
15 13
     def each(&block)
16 14
       @_o.each{|k|block.call(k,self[k])}

0 notes on commit 6803d95

Please sign in to comment.
Something went wrong with that request. Please try again.