Sha256: e1219d7317cec4f308de9d59ab1429e2e6e554fc63e9ec18be20a0ecd1104bee

Contents?: true

Size: 229 Bytes

Versions: 3

Compression:

Stored size: 229 Bytes

Contents

module Onering
  module Util
    module String
      def nil_empty
        return nil if (self.strip.chomp.empty? rescue true)
        self.strip.chomp
      end
    end
  end
end

class String
  include Onering::Util::String
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
onering-client-0.0.33 lib/onering/util.rb
onering-client-0.0.32 lib/onering/util.rb
onering-client-0.0.30 lib/onering/util.rb