Class: Symbol

Inherits:
Object show all
Defined in:
lib/active_support/core_ext/object/json.rb,
lib/active_support/core_ext/object/blank.rb,
lib/active_support/core_ext/symbol/starts_ends_with.rb

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object

:nodoc:



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

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

#present?Boolean

:nodoc:

Returns:

  • (Boolean)


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

def present? # :nodoc:
  !empty?
end