Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2117

Rename Binary#to_string to Binary#to_s

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.12.0.rc0
    • Affects Version/s: None
    • Component/s: Encryption
    • Labels:
      None

      https://github.com/mongodb/mongo-ruby-driver/blob/master/lib/mongo/crypt/binary.rb#L126

      The Ruby convention for converting an object to string is to use the #to_s method. We follow it in, for example, BSON::ByteBuffer.

      Along this convention I propose renaming Mongo::Crypt::Binary#to_string to #to_s.

            Assignee:
            emily.giurleo@mongodb.com Emily Giurleo (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: