Sha256: a07c9aa788f721778f95534b0b40c51da5899c1f6d2c8f0e1d14533ac67aad92

Contents?: true

Size: 256 Bytes

Versions: 9

Compression:

Stored size: 256 Bytes

Contents

# LODO move to sane :) also remove the andand dep.
class String
  def present?
    length > 0
  end
end

class NilClass
  def present?
    false
  end
end
class Object
  def present?
    true
  end
end

class Array
  def present?
    length > 0
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sane-0.25.8 lib/sane/present.rb
sane-0.25.7 lib/sane/present.rb
sane-0.25.6 lib/sane/present.rb
sane-0.25.5 lib/sane/present.rb
sane-0.25.4 lib/sane/present.rb
sane-0.25.3 lib/sane/present.rb
sane-0.25.2 lib/sane/present.rb
sane-0.25.1 lib/sane/present.rb
sane-0.24.6 lib/sane/present.rb