Sha256: 3ef9878e41abdfa03b980086b928b0fe5afdf4fc39518711398635e9844fc873

Contents?: true

Size: 239 Bytes

Versions: 22

Compression:

Stored size: 239 Bytes

Contents

class NilClass
  def blank?
    true
  end
  alias_method :wblank?, :blank?
  alias_method :empty?, :blank?

  def any?
    false
  end
end

class String
  def blank?
    self.empty?
  end

  def wblank?
    self.strip.blank?
  end
end  

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
sugar-high-0.3.5 lib/sugar-high/blank.rb
sugar-high-0.3.4 lib/sugar-high/blank.rb
sugar-high-0.3.3 lib/sugar-high/blank.rb
sugar-high-0.3.2 lib/sugar-high/blank.rb
sugar-high-0.3.1 lib/sugar-high/blank.rb
sugar-high-0.3.0 lib/sugar-high/blank.rb
sugar-high-0.2.12 lib/sugar-high/blank.rb
sugar-high-0.2.11 lib/sugar-high/blank.rb
sugar-high-0.2.10 lib/sugar-high/blank.rb
sugar-high-0.2.9 lib/sugar-high/blank.rb
sugar-high-0.2.8 lib/sugar-high/blank.rb
sugar-high-0.2.7 lib/sugar-high/blank.rb
sugar-high-0.2.6 lib/sugar-high/blank.rb
sugar-high-0.2.5 lib/sugar-high/blank.rb
sugar-high-0.2.4 lib/sugar-high/blank.rb
sugar-high-0.2.2 lib/sugar-high/blank.rb
sugar-high-0.2.1 lib/sugar-high/blank.rb
sugar-high-0.2.0 lib/sugar-high/blank.rb
sugar-high-0.1.8 lib/sugar-high/blank.rb
sugar-high-0.1.7 lib/sugar-high/blank.rb