lib/ostruct.rb in ostruct-0.6.0 vs lib/ostruct.rb in ostruct-0.6.1
- old
+ new
@@ -105,11 +105,11 @@
# ending with <code>!</code>.
#
# For all these reasons, consider not using OpenStruct at all.
#
class OpenStruct
- VERSION = "0.6.0"
+ VERSION = "0.6.1"
HAS_PERFORMANCE_WARNINGS = begin
Warning[:performance]
true
rescue NoMethodError, ArgumentError
@@ -374,10 +374,10 @@
singleton_class.remove_method(sym, "#{sym}=")
rescue NameError
end
@table.delete(sym) do
return yield if block
- raise! NameError.new("no field `#{sym}' in #{self}", sym)
+ raise! NameError.new("no field '#{sym}' in #{self}", sym)
end
end
InspectKey = :__inspect_key__ # :nodoc: