Server IP : 66.29.132.122 / Your IP : 3.12.162.33 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/proc/thread-self/root/proc/self/root/proc/self/root/proc/self/root/proc/self/root/opt/alt/ruby33/share/rubygems/rubygems/safe_marshal/ |
Upload File : |
# frozen_string_literal: true module Gem module SafeMarshal module Elements class Element end class Symbol < Element def initialize(name) @name = name end attr_reader :name end class UserDefined < Element def initialize(name, binary_string) @name = name @binary_string = binary_string end attr_reader :name, :binary_string end class UserMarshal < Element def initialize(name, data) @name = name @data = data end attr_reader :name, :data end class String < Element def initialize(str) @str = str end attr_reader :str end class Hash < Element def initialize(pairs) @pairs = pairs end attr_reader :pairs end class HashWithDefaultValue < Hash def initialize(pairs, default) super(pairs) @default = default end attr_reader :default end class Array < Element def initialize(elements) @elements = elements end attr_reader :elements end class Integer < Element def initialize(int) @int = int end attr_reader :int end class True < Element def initialize end TRUE = new.freeze end class False < Element def initialize end FALSE = new.freeze end class WithIvars < Element def initialize(object, ivars) @object = object @ivars = ivars end attr_reader :object, :ivars end class Object < Element def initialize(name) @name = name end attr_reader :name end class Nil < Element NIL = new.freeze end class ObjectLink < Element def initialize(offset) @offset = offset end attr_reader :offset end class SymbolLink < Element def initialize(offset) @offset = offset end attr_reader :offset end class Float < Element def initialize(string) @string = string end attr_reader :string end class Bignum < Element # rubocop:disable Lint/UnifiedInteger def initialize(sign, data) @sign = sign @data = data end attr_reader :sign, :data end class UserClass < Element def initialize(name, wrapped_object) @name = name @wrapped_object = wrapped_object end attr_reader :name, :wrapped_object end end end end