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

アダプターの設定を渡すオブジェクトを Hash から Struct に変更 #150

Conversation

koi-chan
Copy link
Member

fix #132

名前を RGRB::PluginBase::AdapterOptions にしてみたが、RGRB::Config 等と同様の名前空間においた方が良かっただろうか。

:root_path,
:plugin,
:logger,
)
Copy link
Member

Choose a reason for hiding this comment

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

名前を含めてこれで大丈夫です。

メンバが増えてくると初期化が大変なので、将来的には Struct.newkeyword_init: true を指定し、キーワード引数で順番と関係なく初期化できるようにしたいです。ただ、現在はそれに対応していないRuby 2.4も動作環境に含んでいるので、残念ながら変えられませんでした。

参考:

@ochaochaocha3 ochaochaocha3 merged commit 6eeb043 into arrange-plugin-adapter-module_namespace-and-path Jul 23, 2019
@koi-chan koi-chan deleted the arrange-plugin-adapter-module_struct-plugin-configs branch July 23, 2019 15:11
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