File: immutable.rb

package info (click to toggle)
ruby-dry-inflector 0.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 356 kB
  • sloc: ruby: 1,498; makefile: 6; sh: 4
file content (17 lines) | stat: -rw-r--r-- 243 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

module RSpec
  module Support
    module Immutable
      private

      def i(string)
        string.freeze
      end
    end
  end
end

RSpec.configure do |config|
  config.include RSpec::Support::Immutable
end