Skip to content

chore: add frozen_string_literal magic comment to lib - #292

Closed
seuros wants to merge 1 commit into
trailblazer:masterfrom
seuros:chore/frozen-string-literal
Closed

seuros wants to merge 1 commit into
trailblazer:masterfrom
seuros:chore/frozen-string-literal

Conversation

@seuros

@seuros seuros commented Aug 29, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR standardizes Ruby source files under lib/ by enabling frozen string literals at the file level, which can reduce object allocations and help avoid accidental string mutation in library code.

Changes:

  • Add # frozen_string_literal: true magic comment to multiple lib/representable/**/*.rb files.
  • Insert a separating blank line after the magic comment for readability/standard layout.

Reviewed changes

Copilot reviewed 34 out of 34 changed files in this pull request and generated no comments.

Show a summary per file
File Description
lib/representable/yaml/binding.rb Add frozen string literal magic comment at file header.
lib/representable/yaml.rb Add frozen string literal magic comment at file header.
lib/representable/xml/namespace.rb Add frozen string literal magic comment at file header.
lib/representable/xml/hash.rb Add frozen string literal magic comment at file header.
lib/representable/xml/collection.rb Add frozen string literal magic comment at file header.
lib/representable/xml/binding.rb Add frozen string literal magic comment at file header.
lib/representable/xml.rb Add frozen string literal magic comment at file header.
lib/representable/version.rb Add frozen string literal magic comment at file header.
lib/representable/serializer.rb Add frozen string literal magic comment at file header.
lib/representable/represent.rb Add frozen string literal magic comment at file header.
lib/representable/populator.rb Add frozen string literal magic comment at file header.
lib/representable/pipeline.rb Add frozen string literal magic comment at file header.
lib/representable/pipeline_factories.rb Add frozen string literal magic comment at file header.
lib/representable/option.rb Add frozen string literal magic comment at file header.
lib/representable/object/binding.rb Add frozen string literal magic comment at file header.
lib/representable/object.rb Add frozen string literal magic comment at file header.
lib/representable/json/hash.rb Add frozen string literal magic comment at file header.
lib/representable/json/collection.rb Add frozen string literal magic comment at file header.
lib/representable/json.rb Add frozen string literal magic comment at file header.
lib/representable/insert.rb Add frozen string literal magic comment at file header.
lib/representable/hash/collection.rb Add frozen string literal magic comment at file header.
lib/representable/hash/binding.rb Add frozen string literal magic comment at file header.
lib/representable/hash.rb Add frozen string literal magic comment at file header.
lib/representable/hash_methods.rb Add frozen string literal magic comment at file header.
lib/representable/for_collection.rb Add frozen string literal magic comment at file header.
lib/representable/deserializer.rb Add frozen string literal magic comment at file header.
lib/representable/definition.rb Add frozen string literal magic comment at file header.
lib/representable/decorator.rb Add frozen string literal magic comment at file header.
lib/representable/declarative.rb Add frozen string literal magic comment at file header.
lib/representable/debug.rb Add frozen string literal magic comment at file header.
lib/representable/config.rb Add frozen string literal magic comment at file header.
lib/representable/coercion.rb Add frozen string literal magic comment at file header.
lib/representable/cached.rb Add frozen string literal magic comment at file header.
lib/representable.rb Add frozen string literal magic comment at file header.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@seuros seuros closed this Aug 29, 2026
@seuros
seuros deleted the chore/frozen-string-literal branch August 29, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants