Class: Symbol
- Defined in:
- lib/active_support/core_ext/object/json.rb,
lib/active_support/core_ext/symbol/starts_ends_with.rb
Instance Method Summary collapse
-
#as_json(options = nil) ⇒ Object
:nodoc:.
- #end_with?(*suffixes) ⇒ Boolean (also: #ends_with?)
- #start_with?(*prefixes) ⇒ Boolean (also: #starts_with?)
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( = nil) #:nodoc: to_s end |
#end_with?(*suffixes) ⇒ Boolean Also known as: ends_with?
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?
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 |