class String
Constants
- BLANK_RE
extracted from rails: activesupport/lib/active_support/core_ext/object/blank.rb:102
Public Instance Methods
blank?()
click to toggle source
# File lib/core_ext/string.rb, line 9 def blank? empty? || BLANK_RE.match?(self) end
not_blank?()
click to toggle source
# File lib/core_ext/string.rb, line 13 def not_blank? !blank? end
not_empty?()
click to toggle source
# File lib/core_ext/string.rb, line 5 def not_empty? !empty? end