Method: RBPDF#empty_string

Defined in:
lib/rbpdf.rb

#empty_string(str) ⇒ Object

Determine whether a string is empty.

@param string :str

string to be checked

@return boolean

true if string is empty

@access public
@since 4.5.044 (2009-04-16)


16828
16829
16830
# File 'lib/rbpdf.rb', line 16828

def empty_string(str)
  return (str.nil? or (str.is_a?(String) and (str.length == 0)))
end