Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/rakumarket.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/rakumarket.rb', line 45

def blank?
  self !~ /[^[:space:]]/
end

#present?Boolean

Returns:

  • (Boolean)


48
49
50
# File 'lib/rakumarket.rb', line 48

def present?
  !blank?
end