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

add deep_freeze refinement to support #260

Merged
merged 3 commits into from Jun 5, 2017
Merged

Conversation

jphager2
Copy link
Contributor

@jphager2 jphager2 commented May 23, 2017

  • Adds deep_freeze as a refinement on Object and Array.
  • Removes implementations of freeze for Router and Route.

In reference to #253

@@ -59,19 +59,6 @@ def populated_path(path_to_self, **params)
}.join("/"))
end

def freeze
hooks.each do |_, hooks_arr|
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe we also need to refine Hash to freeze values. Let me know if I'm missing something.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right you are. I just pushed an addition that refines Hash. I'm freezing keys and values. Do you think that is the right behavior? Or should it only be values?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep, keys/values make sense.

@bryanp bryanp merged commit 04b7963 into pakyow:environment Jun 5, 2017
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.

None yet

2 participants