Permalink
Browse files

return nil when dimension names are nil

  • Loading branch information...
Aarong93 committed Aug 22, 2012
1 parent bb3fd2d commit af1a784f8f3a66fb7bd9c5ff844f78e7901d40bf
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/rsruby/rarray.rb
View
@@ -54,7 +54,8 @@ def subset_helper(_array,_new_order,_current_depth,_target_depth)
def get(*_args)
indices = _args.each_with_index.map{|x,i|
d = dimnames_along_dimension(i)
j= d.index(x)
return nil unless d
j = d.index(x)
return nil unless j
j
}

0 comments on commit af1a784

Please sign in to comment.