Sha256: d24a346ab3f0eb8bd297b00c255729b6511a2ee5e02d9a49babf4578aab77717

Contents?: true

Size: 318 Bytes

Versions: 42

Compression:

Stored size: 318 Bytes

Contents

# frozen_string_literal: true

class Symbol
  def start_with?(*prefixes)
    to_s.start_with?(*prefixes)
  end unless method_defined?(:start_with?)

  def end_with?(*suffixes)
    to_s.end_with?(*suffixes)
  end unless method_defined?(:end_with?)

  alias :starts_with? :start_with?
  alias :ends_with? :end_with?
end

Version data entries

42 entries across 42 versions & 7 rubygems

Version Path
activesupport-6.1.0.rc2 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.0.rc1 lib/active_support/core_ext/symbol/starts_ends_with.rb