123456789_123456789_123456789_123456789_123456789_

Class: Symbol

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#present?Boolean (readonly)

This method is for internal use only.
[ GitHub ]

  
# File 'activesupport/lib/active_support/core_ext/object/blank.rb', line 130

def present? # :nodoc:
  !empty?
end

Instance Method Details

#as_json(options = nil)

This method is for internal use only.
[ GitHub ]

  
# File 'activesupport/lib/active_support/core_ext/object/json.rb', line 107

def as_json(options = nil) # :nodoc:
  to_s
end

#blank?

A Symbol is blank if it’s empty:

:''.blank?     # => true
:symbol.blank? # => false
[ GitHub ]

  
# File 'activesupport/lib/active_support/core_ext/object/blank.rb', line 128

alias_method :blank?, :empty?

#ends_with?

[ GitHub ]

  
# File 'activesupport/lib/active_support/core_ext/symbol/starts_ends_with.rb', line 5

alias :ends_with? :end_with?

#starts_with?

[ GitHub ]

  
# File 'activesupport/lib/active_support/core_ext/symbol/starts_ends_with.rb', line 4

alias :starts_with? :start_with?