Skip to content

Conversation

thorsteneckel
Copy link
Contributor

This aims to avoid constructs like this:

attributes = {}
ldap.search_root_dse.each { |key, value|
  attributes[key] = value
}
attributes

Which now will look like:

ldap.search_root_dse.to_h

Copy link
Member

@HarlemSquirrel HarlemSquirrel left a comment

Choose a reason for hiding this comment

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

I like it! I think we should merge this in after our next patch release and include this in a minor release since it's a new feature.

@HarlemSquirrel HarlemSquirrel added this to the v0.17 milestone Jul 9, 2020
Copy link
Member

@HarlemSquirrel HarlemSquirrel left a comment

Choose a reason for hiding this comment

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

Thank you!

@HarlemSquirrel HarlemSquirrel merged commit a86cc32 into ruby-ldap:master Aug 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants