Class: Symbol

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

Instance Method Summary collapse

Instance Method Details

#as_json(options = nil) ⇒ Object

:nodoc:



94
95
96
# File 'lib/active_support/core_ext/object/json.rb', line 94

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

#end_with?(*suffixes) ⇒ Boolean Also known as: ends_with?

Returns:

  • (Boolean)


8
9
10
# File 'lib/active_support/core_ext/symbol/starts_ends_with.rb', line 8

def end_with?(*suffixes)
  to_s.end_with?(*suffixes)
end

#start_with?(*prefixes) ⇒ Boolean Also known as: starts_with?

Returns:

  • (Boolean)


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

def start_with?(*prefixes)
  to_s.start_with?(*prefixes)
end