Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge() method is broken? #60

Open
key88sf opened this issue Feb 9, 2023 · 0 comments
Open

merge() method is broken? #60

key88sf opened this issue Feb 9, 2023 · 0 comments

Comments

@key88sf
Copy link

key88sf commented Feb 9, 2023

Ruby 3.04:

3.0.4 :001 > RRR = ImmutableStruct.new(:source_type, :text, :score, :data, :error_message)
 => RRR 
3.0.4 :002 > x1 = RRR.new(text: "Hello")
 => #<struct RRR source_type=nil, text="Hello", score=nil, data=nil, error_message=nil> 
3.0.4 :003 > x2 = x1.merge(score: 99)
(irb):3:in `<main>': undefined method `merge' for #<struct RRR source_type=nil, text="Hello", score=nil, data=nil, error_message=nil> (NoMethodError)
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

No branches or pull requests

1 participant