Class: Symbol

Inherits:
Object show all
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
more...

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object

:nodoc:

[View source]

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

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

#present?Boolean

:nodoc:

Returns:

  • (Boolean)
[View source]

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

def present? # :nodoc:
  !empty?
end