Sha256: 120fb4d9eb918ac60bd77ba4d78e3f2c0c294d530f693b195edb3a669a2560ce

Contents?: true

Size: 395 Bytes

Versions: 1

Compression:

Stored size: 395 Bytes

Contents

module Polyfill
  module V2_3
    module String
      module Instance
        module PlusUnary
          module Method
            def +@
              frozen? ? dup : self
            end
          end

          refine ::String do
            include Method
          end

          def self.included(base)
            base.include Method
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polyfill-0.6.0 lib/polyfill/v2_3/string/instance/plus_unary.rb