Class: Symbol

Inherits:
Object show all
Defined in:
dev-cmd/irb.rb,
extend/blank.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

A Symbol is blank if it's empty:

:''.blank?     # => true
:symbol.blank? # => false

Returns:

  • (Boolean)


128
# File 'extend/blank.rb', line 128

def blank? = empty?

#present?Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:

  • (Boolean)


131
# File 'extend/blank.rb', line 131

def present? = !empty? # :nodoc: