Sha256: aaa75359a47462d49f69eb065f65f0bf290baadbf87019c32af9c84b0744e66a

Contents?: true

Size: 235 Bytes

Versions: 11

Compression:

Stored size: 235 Bytes

Contents

module MonetDB
  class Connection
    module Messages
    private

      def msg_chr(string)
        string.empty? ? "" : string[0].chr
      end

      def msg?(string, msg)
        msg_chr(string) == msg
      end

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
monetdb-0.2.10 lib/monetdb/connection/messages.rb
monetdb-0.2.9 lib/monetdb/connection/messages.rb
monetdb-0.2.8 lib/monetdb/connection/messages.rb
monetdb-0.2.7 lib/monetdb/connection/messages.rb
monetdb-0.2.6 lib/monetdb/connection/messages.rb
monetdb-0.2.5 lib/monetdb/connection/messages.rb
monetdb-0.2.4 lib/monetdb/connection/messages.rb
monetdb-0.2.3 lib/monetdb/connection/messages.rb
monetdb-0.2.2 lib/monetdb/connection/messages.rb
monetdb-0.2.1 lib/monetdb/connection/messages.rb
monetdb-0.2.0 lib/monetdb/connection/messages.rb