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.7.10 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.7.9 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.7.8 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.7.7 lib/active_support/core_ext/symbol/starts_ends_with.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.7.6 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.7.5 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.7.4 lib/active_support/core_ext/symbol/starts_ends_with.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activesupport-6.1.6.1/lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.7.3 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.7.2 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.7.1 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.7 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.6.1 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.6 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.5.1 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.5 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.4.7 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.4.6 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.4.5 lib/active_support/core_ext/symbol/starts_ends_with.rb