Sha256: a268098f2b3cae3ba54691ed34667b48d455555f0218dafc5127119a13356b53

Contents?: true

Size: 426 Bytes

Versions: 5

Compression:

Stored size: 426 Bytes

Contents

# coding: utf-8

module ThinReports
  module Core
    
    # @private
    module ObjectExtensions
      unless ::Object.method_defined?(:blank?)
        def blank?
          case self
          when String   then self.nil? || self.empty?
          when NilClass then true
          else false
          end
        end
      end
    end
    
  end
end

# @private
class Object
  include ThinReports::Core::ObjectExtensions
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thinreports-0.7.7 lib/thinreports/core/ext/object.rb
thinreports-0.7.6 lib/thinreports/core/ext/object.rb
thinreports-0.7.5 lib/thinreports/core/ext/object.rb
thinreports-0.7.0 lib/thinreports/core/ext/object.rb
thinreports-0.6.0.pre3 lib/thinreports/core/ext/object.rb