Before

1require "bson"
2
3module Moneta
4 module Transforms
5 # Serializes objects to binary strings using the {https://rubygems.org/gems/bson bson gem}
6 class BSON < Transforms::Serializer
7 # Serialize to BSON
8 #
9 # @param value [Object]
10 # @return [String]
11 def serialize(value)
12 ::BSON::Document["v" => value].to_bson.to_s
…lines 13–25 unchanged (13 lines)

After

1require "bson"
2
3module Moneta
4 module Transforms
5 # Serializes objects to binary strings using the {https://rubygems.org/gems/bson bson gem}
6 class BSON < Transform::Serializer
7 # Serialize to BSON
8 #
9 # @param value [Object]
10 # @return [String]
11 def serialize(value)
12 ::BSON::Document["v" => value].to_bson.to_s
…lines 13–25 unchanged (13 lines)

Before

program
call
identifier "require"
argument_list
string
" "\""
string_content "bson"
" "\""
module
module "module"
constant "Moneta"
body_statement
module
module "module"
constant "Transforms"
comment "# Serializes objects to binary strings using the {https://ru"...
body_statement
class
class "class"
constant "BSON"
superclass
< "<"
scope_resolution
constant "Transforms"
:: "::"
constant "Serializer"
comment "# Serialize to BSON"
comment "#"
comment "# @param value [Object]"
comment "# @return [String]"
body_statement (+77 nodes collapsed)
end "end"
end "end"
end "end"

After

program
call
identifier "require"
argument_list
string
" "\""
string_content "bson"
" "\""
module
module "module"
constant "Moneta"
body_statement
module
module "module"
constant "Transforms"
comment "# Serializes objects to binary strings using the {https://ru"...
body_statement
class
class "class"
constant "BSON"
superclass
< "<"
scope_resolution
constant "Transform"
:: "::"
constant "Serializer"
comment "# Serialize to BSON"
comment "#"
comment "# @param value [Object]"
comment "# @return [String]"
body_statement (+77 nodes collapsed)
end "end"
end "end"
end "end"