core/struct.rb in opal-0.3.22 vs core/struct.rb in opal-0.3.25
- old
+ new
@@ -72,17 +72,13 @@
instance_variable_set "@#{name}", value
end
def each
- return enum_for :each unless block_given?
-
members.each { |name| yield self[name] }
end
def each_pair
- return enum_for :each_pair unless block_given?
-
members.each { |name| yield name, self[name] }
end
def eql?(other)
hash == other.hash || other.each_with_index.all? {|object, index|