Sha256: db75ab9192a98df1f665e49b55fd106536cca4312803f1e50247a9b7bbc388b0
Contents?: true
Size: 881 Bytes
Versions: 6
Compression:
Stored size: 881 Bytes
Contents
require File.join(File.dirname(__FILE__), 'active_support', 'inheritable_attributes') class Object # @private def duplicable?; true; end def blank?; respond_to?(:empty?) ? empty? : !self; end def present?; !blank?; end end class Array # @private alias_method :blank?, :empty? def extract_options!; last.is_a?(::Hash) ? pop : {}; end end class Hash # @private alias_method :blank?, :empty? end class String # @private def blank?; self !~ /\S/; end end class NilClass # @private def duplicable?; false; end def blank?; true; end end class FalseClass # @private def duplicable?; false; end def blank?; true; end end class TrueClass # @private def duplicable?; false; end def blank?; false; end end class Symbol # @private def duplicable?; false; end end class Numeric # @private def duplicable?; false; end def blank?; false; end end
Version data entries
6 entries across 6 versions & 1 rubygems