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

[instance] Setting key aliases #119

Open
0exp opened this issue Oct 7, 2020 · 0 comments
Open

[instance] Setting key aliases #119

0exp opened this issue Oct 7, 2020 · 0 comments
Assignees
Labels
Milestone

Comments

@0exp
Copy link
Owner

0exp commented Oct 7, 2020

SUBJ

PoC:

class Config < Qonfig::DataSet
  setting :a, 22, as: :b # as: [:b, 'c', :d]
end

config = Config.new

config.a # => 22
config.b # => 22
config.c # => 22
config.d # => 22

config[:a] = 45
cofig.b # => 45
# and etc
@0exp 0exp added the feature label Oct 7, 2020
@0exp 0exp added this to the 0.26.0 milestone Oct 7, 2020
@0exp 0exp self-assigned this Oct 7, 2020
@0exp 0exp changed the title [gem] Setting key aliases [instance] Setting key aliases Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant