Sha256: a764cff9cab0aad5c9797c9b4fd3048c4c60c378d705522a42856ad9bb6ea405

Contents?: true

Size: 476 Bytes

Versions: 14

Compression:

Stored size: 476 Bytes

Contents

# frozen_string_literal: true

# Special patch to define the error constant in generated files
RubyNext::Core.patch Object,
  name: "NoMatchingPatternError",
  method: nil,
  refineable: [],
  version: "2.7",
  # avoid defining the constant twice, 'causae it's already included in core
  # we only use the contents in `ruby-next core_ext`.
  supported: true,
  location: [__FILE__, __LINE__ + 2] do
  <<~RUBY
    class NoMatchingPatternError < RuntimeError
    end
  RUBY
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
ruby-next-core-0.9.2 lib/ruby-next/core/constants/no_matching_pattern_error.rb
ruby-next-core-0.9.1 lib/ruby-next/core/constants/no_matching_pattern_error.rb
ruby-next-core-0.9.0 lib/ruby-next/core/constants/no_matching_pattern_error.rb
ruby-next-core-0.9.0.pre lib/ruby-next/core/constants/no_matching_pattern_error.rb
ruby-next-core-0.8.0 lib/ruby-next/core/constants/no_matching_pattern_error.rb
ruby-next-core-0.7.0 lib/ruby-next/core/constants/no_matching_pattern_error.rb
ruby-next-core-0.6.0 lib/ruby-next/core/constants/no_matching_pattern_error.rb
ruby-next-core-0.5.3 lib/ruby-next/core/constants/no_matching_pattern_error.rb
ruby-next-core-0.5.2 lib/ruby-next/core/constants/no_matching_pattern_error.rb
ruby-next-core-0.5.1 lib/ruby-next/core/constants/no_matching_pattern_error.rb
ruby-next-core-0.5.0 lib/ruby-next/core/constants/no_matching_pattern_error.rb
ruby-next-core-0.4.0 lib/ruby-next/core/constants/no_matching_pattern_error.rb
ruby-next-0.3.0 lib/ruby-next/core/constants/no_matching_pattern_error.rb
ruby-next-core-0.3.0 lib/ruby-next/core/constants/no_matching_pattern_error.rb