123456789_123456789_123456789_123456789_123456789_

Class: Symbol

Instance Method Summary

Instance Method Details

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

[ GitHub ]

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

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

#ends_with?(*suffixes)

Alias for #end_with?.

[ GitHub ]

  
# File 'activesupport/lib/active_support/core_ext/symbol/starts_ends_with.rb', line 13

alias :ends_with? :end_with?

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

[ GitHub ]

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

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

#starts_with?(*prefixes)

Alias for #start_with?.

[ GitHub ]

  
# File 'activesupport/lib/active_support/core_ext/symbol/starts_ends_with.rb', line 12

alias :starts_with? :start_with?