Skip to content

Fix SimpleInspect#inspect(true) raising ArgumentError - #195

Merged
satoryu merged 1 commit into
masterfrom
fix-191-inspect-full
Oct 17, 2026
Merged

satoryu merged 1 commit into
masterfrom
fix-191-inspect-full

Conversation

@satoryu

@satoryu satoryu commented Oct 17, 2026

Copy link
Copy Markdown
Member

Bug

Docx::SimpleInspect#inspect(full = false) is supposed to fall back to Ruby's default inspect when called as inspect(true). Because it used a bare super, the full argument was forwarded to Object#inspect, which takes no arguments, so the call raised ArgumentError.

Fix

Call super() so no arguments are passed.

Tests

New case in spec/docx/helpers_spec.rb: inspect(true) returns the full, untruncated output.

Closes #191

🤖 Generated with Claude Code

A bare `super` forwarded the `full` argument to Object#inspect, which
takes none. Call `super()` explicitly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@satoryu
satoryu merged commit fb0a6ec into master Oct 17, 2026
6 checks passed
@satoryu
satoryu deleted the fix-191-inspect-full branch October 17, 2026 16:07
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.

SimpleInspect#inspect(true) raises ArgumentError

1 participant