Sha256: 6714ba0933501f05a4b8c3db064082b14bb24d742edeec7cd1f4aa0761b8b1b5

Contents?: true

Size: 468 Bytes

Versions: 6

Compression:

Stored size: 468 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

6 entries across 6 versions & 1 rubygems

Version Path
ruby-next-core-0.10.5 lib/ruby-next/core/constants/no_matching_pattern_error.rb
ruby-next-core-0.10.4 lib/ruby-next/core/constants/no_matching_pattern_error.rb
ruby-next-core-0.10.3 lib/ruby-next/core/constants/no_matching_pattern_error.rb
ruby-next-core-0.10.2 lib/ruby-next/core/constants/no_matching_pattern_error.rb
ruby-next-core-0.10.1 lib/ruby-next/core/constants/no_matching_pattern_error.rb
ruby-next-core-0.10.0 lib/ruby-next/core/constants/no_matching_pattern_error.rb