Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

1# frozen_string_literal: true
2
3class REST::AnnualReportSerializer < ActiveModel::Serializer
4 attributes :year, :data, :schema_version, :share_url
5
6 def share_url
7 public_wrapstodon_url(object.account, object.year, object.share_key) if object.share_key.present?
8 end
9end
10

After

1# frozen_string_literal: true
2
3class REST::AnnualReportSerializer < ActiveModel::Serializer
4 include RoutingHelper
5
6 attributes :year, :data, :schema_version, :share_url
7
8 def share_url
9 public_wrapstodon_url(object.account, object.year, object.share_key) if object.share_key.present?
10 end
11end
12

Before

program
comment "# frozen_string_literal: true"
class
class "class"
scope_resolution
constant "REST"
:: "::"
constant "AnnualReportSerializer"
superclass
< "<"
scope_resolution
constant "ActiveModel"
:: "::"
constant "Serializer"
body_statement
call
identifier "attributes"
argument_list
simple_symbol ":year"
, ","
simple_symbol ":data"
, ","
simple_symbol ":schema_version"
, ","
simple_symbol ":share_url"
method (+33 nodes collapsed)
end "end"

After

program
comment "# frozen_string_literal: true"
class
class "class"
scope_resolution
constant "REST"
:: "::"
constant "AnnualReportSerializer"
superclass
< "<"
scope_resolution
constant "ActiveModel"
:: "::"
constant "Serializer"
body_statement
call
identifier "include"
argument_list
constant "RoutingHelper"
call
identifier "attributes"
argument_list
simple_symbol ":year"
, ","
simple_symbol ":data"
, ","
simple_symbol ":schema_version"
, ","
simple_symbol ":share_url"
method (+33 nodes collapsed)
end "end"