In Files

Parent

Methods

Class/Module Index [+]

Quicksearch

String

support methods to remove dependencies on ActiveSupport

Public Instance Methods

blank?() click to toggle source
# File lib/support.rb, line 8
def blank?
  if respond_to?(:empty?) && respond_to?(:strip) 
    empty? or strip.empty? 
  elsif respond_to?(:empty?) 
    empty? 
  else 
    !self 
  end     
end
present?() click to toggle source
# File lib/support.rb, line 4
def present?
  !blank?
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.