module Magiq::Utils

Public Instance Methods

blank?(val) click to toggle source
# File lib/magiq/utils.rb, line 11
def blank?(val)
  val.respond_to?(:empty?) ? !!val.empty? : !val
end
pluralize(string) click to toggle source
# File lib/magiq/utils.rb, line 7
def pluralize(string)
  ActiveSupport::Inflector.pluralize(string)
end
present?(val) click to toggle source
# File lib/magiq/utils.rb, line 15
def present?(val)
  !blank?(val)
end