lib/onstomp/components/frame_headers.rb in onstomp-1.0.7 vs lib/onstomp/components/frame_headers.rb in onstomp-1.0.8
- old
+ new
@@ -170,10 +170,10 @@
def each &block
if block_given?
iterate_each &block
self
else
- OnStomp::ENUMERATOR_KLASS.new(self)
+ self.to_enum
end
end
if RUBY_VERSION >= "1.9"
def names; @values.keys; end