lib/net/ldap/entry.rb in net-ldap-0.13.0 vs lib/net/ldap/entry.rb in net-ldap-0.14.0
- old
+ new
@@ -139,13 +139,13 @@
# Calls a user-supplied block with each attribute in turn, passing two
# arguments to the block: a Symbol giving the name of the attribute, and a
# (possibly empty) \Array of data values.
def each # :yields: attribute-name, data-values-array
if block_given?
- attribute_names.each {|a|
- attr_name,values = a,self[a]
+ attribute_names.each do|a|
+ attr_name, values = a, self[a]
yield attr_name, values
- }
+ end
end
end
alias_method :each_attribute, :each
##