Module: Bundler::SafeMarshal
Relationships & Source Files | |
Defined in: | lib/bundler/safe_marshal.rb |
Constant Summary
-
ALLOWED_CLASSES =
# File 'lib/bundler/safe_marshal.rb', line 5[ Array, FalseClass, Gem::Specification, Gem::Version, Hash, String, Symbol, Time, TrueClass, ].freeze
-
ERROR =
# File 'lib/bundler/safe_marshal.rb', line 17"Unexpected class %s present in marshaled data. Only %s are allowed."
-
PROC =
# File 'lib/bundler/safe_marshal.rb', line 19proc do |object| object.tap do unless ALLOWED_CLASSES.include?(object.class) raise TypeError, format(ERROR, object.class, ALLOWED_CLASSES.join(", ")) end end end
Class Method Summary
Class Method Details
.proc
[ GitHub ]# File 'lib/bundler/safe_marshal.rb', line 27
def self.proc PROC end