Rename Binary#to_string to Binary#to_s

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 2.12.0.rc0
    • Affects Version/s: None
    • Component/s: Encryption
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 (Inactive)
            Reporter:
            Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: