Make AST classes more explicitly value objects
Closed this issue · 7 comments
this attr_accessor
in background.rb should be possible to change to a attr_reader
(the attributes are set in the constructor). What about this attr_accessor
in doc_string.rb is the file
attribute ever used? It is not set in the constructor, and I can remove the line from the file without neither the cucumber-ruby-core test nor the cucumber test fails.
@brasmusson if you can remove it without breaking tests, I'm happy to rip it out.
All attr_accessor
declarations are removed from the ast classes (044cca8)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs.
This issue has been automatically closed because of inactivity. You can support the Cucumber core team on opencollective.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.