lib/csl/node.rb in csl-1.5.0 vs lib/csl/node.rb in csl-1.5.1
- old
+ new
@@ -266,12 +266,12 @@
!default_attributes.empty?
end
alias has_defaults? has_default_attributes?
# Iterates through the Node's attributes
- def each
+ def each(&block)
if block_given?
- attributes.each_pair(&Proc.new)
+ attributes.each_pair(&block)
self
else
to_enum
end
end