Skip to content

Make Paramix the module to include - #349

Merged
trans merged 1 commit into
mainfrom
fix/paramix-one-name
Nov 18, 2026
Merged

trans merged 1 commit into
mainfrom
fix/paramix-one-name

Conversation

@trans

@trans trans commented Nov 18, 2026

Copy link
Copy Markdown
Member

A parametric module now says include Paramix, one name, in place of include Paramix::Parametric.

module Greeter
  include Paramix
  parameterized do |params|
    define_method(:hello) { "Hello from #{params[:name]}!" }
  end
end

class English
  include Greeter[:name => 'England']
end

Paramix::Parametric, the name in the Paramix gem, is kept as another name for the same module, so code written for the gem still works. Paramix::Extensions and Paramix::Mixin move up a level with it.

This goes in before the 4.2.0 release (#348).

🤖 Generated with Claude Code

A parametric module now says include Paramix, not
include Paramix::Parametric. Paramix::Parametric, the name in the
Paramix gem, is kept as another name for the same module.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@trans
trans merged commit 0dd2084 into main Nov 18, 2026
16 checks passed
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.

1 participant