Sha256: 64853c5293a521889c84f674a1d671f13fab2bfcfffed7805958fd8289da9e83

Contents?: true

Size: 205 Bytes

Versions: 16

Compression:

Stored size: 205 Bytes

Contents

# thanks ruby on rails!
#
# these are all blatent, unapologetic rip offs of RoR extensions.

class Object
  def blank?
    respond_to?(:empty?) ? empty? : !self
  end

  def present?
    !blank?
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sugarcube-0.16.2 lib/sugarcube/ror.rb
sugarcube-0.16 lib/sugarcube/ror.rb
sugarcube-0.15.5 lib/sugarcube/ror.rb
sugarcube-0.15.3 lib/sugarcube/ror.rb
sugarcube-0.15.0 lib/sugarcube/ror.rb
sugarcube-0.14.0 lib/sugarcube/ror.rb
sugarcube-0.13.7 lib/sugarcube/ror.rb
sugarcube-0.13.5 lib/sugarcube/ror.rb
sugarcube-0.13.4 lib/sugarcube/ror.rb
sugarcube-0.13.3 lib/sugarcube/ror.rb
sugarcube-0.13.2 lib/sugarcube/ror.rb
sugarcube-0.13 lib/sugarcube/ror.rb
sugarcube-0.12 lib/sugarcube/ror.rb
sugarcube-0.11.3 lib/sugarcube/ror.rb
sugarcube-0.11.2 lib/sugarcube/ror.rb
sugarcube-0.11.1 lib/sugarcube/ror.rb