Sha256: ab729031b329e79fe3b04afee31ecca3a0cbd23e7d3e8d6331c2ad9907696127

Contents?: true

Size: 210 Bytes

Versions: 1

Compression:

Stored size: 210 Bytes

Contents

Object.class_eval do
  def have_value?
    result = nil
    if self.respond_to?(:blank?)
      result = !self.blank?
    elsif self.respond_to?(:empty?)
      result = !self.empty?
    end
    result
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rrjj-0.0.1 lib/ro_core_ext/object.rb