Conversation
There was a problem hiding this comment.
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: truemagic comment to multiplelib/representable/**/*.rbfiles. - 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.