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
ric-0.14.2 vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/symbol/starts_ends_with.rb
ric-0.14.1 vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/symbol/starts_ends_with.rb
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/symbol/starts_ends_with.rb
ric-0.14.0 vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.4.4/lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.4.4 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.4.3 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.4.2 lib/active_support/core_ext/symbol/starts_ends_with.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/core_ext/symbol/starts_ends_with.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/activesupport-6.1.4.1/lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.4.1 lib/active_support/core_ext/symbol/starts_ends_with.rb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.4/lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.4 lib/active_support/core_ext/symbol/starts_ends_with.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.3.1/lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.3.2 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.3.1 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.3 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.2.1 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.2 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.1 lib/active_support/core_ext/symbol/starts_ends_with.rb
activesupport-6.1.0 lib/active_support/core_ext/symbol/starts_ends_with.rb