Sha256: 71581bed175c0c693354efd732464a40bb99591dfdc917a35359ae17d8e2d2b0

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

module Polyfill
  module V2_3
    module String
      module Instance
        module MinusUnary
          module Method
            def -@
              frozen? ? self : dup.freeze
            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/minus_unary.rb