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 Attribute Summary
- #present? ⇒ Boolean readonly Internal use only
Instance Method Summary
-
#blank?
A Symbol is blank if it’s empty:
- #ends_with?
- #starts_with?
- #as_json(options = nil) Internal use only
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 105
def as_json( = nil) # :nodoc: name end
#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?