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

Extract Struct into another file #79

Merged
merged 4 commits into from
Aug 10, 2023
Merged

Conversation

ydah
Copy link
Collaborator

@ydah ydah commented Aug 9, 2023

Follow up: #78

@@ -1,7 +1,7 @@
module Lrama
class Lexer
class Token < Struct.new(:type, :s_value, :alias, keyword_init: true)
Type = Struct.new(:id, :name, keyword_init: true)
require 'lrama/lexer/token/type'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move this "require" to the first line of this file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I updated this PR.

@ydah ydah requested a review from yui-knk August 10, 2023 03:01
@yui-knk yui-knk merged commit c029c8f into ruby:master Aug 10, 2023
9 checks passed
@yui-knk
Copy link
Collaborator

yui-knk commented Aug 10, 2023

Thank you!

@ydah ydah deleted the extract-struct branch August 10, 2023 07:06
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.

2 participants