Skip to content

Commit

Permalink
rubify non-empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Feb 5, 2015
1 parent aebb452 commit a8d211a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions library/types/src/modules/String.rb
Expand Up @@ -46,8 +46,6 @@ class StringClass < Module

def main
textdomain "base"

# 64 characters is the base undeline length
end

# Quote a string with 's
Expand Down Expand Up @@ -84,8 +82,8 @@ def OptParens(s)
# @param [Array<String>] l a list of strings
# @return only non-"" items
def NonEmpty(l)
l = deep_copy(l)
Builtins.filter(l) { |i| i != "" }
return nil unless l
l.reject { |i| i == "" }
end

# @param [String] s \n-terminated items
Expand Down

0 comments on commit a8d211a

Please sign in to comment.