diff --git a/src/bindings/swig/ruby/kdb.rb b/src/bindings/swig/ruby/kdb.rb index 273067e94fb..a89d66b4859 100644 --- a/src/bindings/swig/ruby/kdb.rb +++ b/src/bindings/swig/ruby/kdb.rb @@ -65,7 +65,7 @@ def pretty_print if meta.size > 0 puts " meta data keys: #{meta.size}" meta.each do |k| - puts " " + k.to_s.sub(/^meta:\//, "") + puts " " + k.to_s.delete_prefix("meta:/") end else puts " key has no meta data"