Sha256: e997dfade61c7f93bc7dfa2b5ffd59cd1b03fd191222ccc3e8b37beaba954bf3

Contents?: true

Size: 201 Bytes

Versions: 12

Compression:

Stored size: 201 Bytes

Contents

def strip_content(content)
  if content.kind_of? Array
    content.collect { |i| strip_content(i) }.delete_if { |i| i == [] }
  else
    content.respond_to?(:strip) ? content.strip : content
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
eeml-0.0.42 lib/eeml/helpers.rb
eeml-0.0.41 lib/eeml/helpers.rb
eeml-0.0.40 lib/eeml/helpers.rb
eeml-0.0.39 lib/eeml/helpers.rb
eeml-0.0.38 lib/eeml/helpers.rb
eeml-0.0.37 lib/eeml/helpers.rb
eeml-0.0.36 lib/eeml/helpers.rb
eeml-0.0.35 lib/eeml/helpers.rb
eeml-0.0.34 lib/eeml/helpers.rb
eeml-0.0.33 lib/eeml/helpers.rb
eeml-0.0.32 lib/eeml/helpers.rb
eeml-0.0.29 lib/eeml/helpers.rb