Commit 162b3625 authored by Daniel Bovensiepen's avatar Daniel Bovensiepen

Only open struct class if there is actually already a class

parent a686ad66
......@@ -2,7 +2,9 @@
# Struct
#
# ISO 15.2.18
class Struct
if Object.const_defined?(:Struct)
class Struct
##
# Calls the given block for each element of +self+
......@@ -43,4 +45,6 @@ class Struct
}
ary
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment