Class: Symbol
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activesupport/lib/active_support/core_ext/object/json.rb, activesupport/lib/active_support/core_ext/object/blank.rb, activesupport/lib/active_support/core_ext/symbol/starts_ends_with.rb |
Instance Method Summary
-
#blank?
A Symbol is blank if it’s empty:
- #ends_with?
- #starts_with?
Instance Method Details
#blank?
A Symbol is blank if it’s empty:
:''.blank? # => true
:symbol.blank? # => false
# 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?