Sha256: 2ba0791bf5adb61f78a9ab2a08dc21601ea53a23a5d33b223534231be4eb8f47

Contents?: true

Size: 338 Bytes

Versions: 4

Compression:

Stored size: 338 Bytes

Contents

# frozen_string_literal: true

require "refinements/shared/reread"
require "stringio"

module Refinements
  # Provides additional enhancements to the StringIO primitive.
  module StringIO
    refine ::StringIO do
      import_methods Shared::Reread

      alias_method :to_s, :string
      alias_method :to_str, :string
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
refinements-12.11.0 lib/refinements/string_io.rb
refinements-12.10.0 lib/refinements/string_io.rb
refinements-12.9.0 lib/refinements/string_io.rb
refinements-12.8.0 lib/refinements/string_io.rb