Sha256: 255d79384133c8cdacd59629db973bb301751ab61eee51bb1bcf4a83c84f7c3d

Contents?: true

Size: 166 Bytes

Versions: 14

Compression:

Stored size: 166 Bytes

Contents

module JRPC
  class Utils

    def self.truncate(string, length, ommiter = '...')
      "#{string[0..length]}#{ommiter if string.length > length}"
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
jrpc-1.1.8 lib/jrpc/utils.rb
jrpc-1.1.7 lib/jrpc/utils.rb
jrpc-1.1.6 lib/jrpc/utils.rb
jrpc-1.1.5 lib/jrpc/utils.rb
jrpc-1.1.4 lib/jrpc/utils.rb
jrpc-1.1.3 lib/jrpc/utils.rb
jrpc-1.1.2 lib/jrpc/utils.rb
jrpc-1.1.1 lib/jrpc/utils.rb
jrpc-1.1.0 lib/jrpc/utils.rb
jrpc-1.0.1 lib/jrpc/utils.rb
jrpc-1.0.0 lib/jrpc/utils.rb
jrpc-0.4.6 lib/jrpc/utils.rb
jrpc-0.4.5 lib/jrpc/utils.rb
jrpc-0.4.4 lib/jrpc/utils.rb