Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.222
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby24 /
share /
ri /
2.4.0 /
system /
OpenStruct /
Delete
Unzip
Name
Size
Permission
Date
Action
%3d%3d-i.ri
800
B
-rw-r--r--
2023-07-26 18:18
%5b%5d%3d-i.ri
596
B
-rw-r--r--
2023-07-26 18:18
%5b%5d-i.ri
543
B
-rw-r--r--
2023-07-26 18:18
as_json-i.ri
382
B
-rw-r--r--
2023-07-26 18:18
cdesc-OpenStruct.ri
3.43
KB
-rw-r--r--
2023-07-26 18:18
delete_field-i.ri
884
B
-rw-r--r--
2023-07-26 18:18
dig-i.ri
1.01
KB
-rw-r--r--
2023-07-26 18:18
each_pair-i.ri
779
B
-rw-r--r--
2023-07-26 18:18
eql%3f-i.ri
441
B
-rw-r--r--
2023-07-26 18:18
freeze-i.ri
235
B
-rw-r--r--
2023-07-26 18:18
hash-i.ri
493
B
-rw-r--r--
2023-07-26 18:18
inspect-i.ri
373
B
-rw-r--r--
2023-07-26 18:18
json_create-c.ri
428
B
-rw-r--r--
2023-07-26 18:18
marshal_dump-i.ri
345
B
-rw-r--r--
2023-07-26 18:18
marshal_load-i.ri
346
B
-rw-r--r--
2023-07-26 18:18
new-c.ri
813
B
-rw-r--r--
2023-07-26 18:18
to_h-i.ri
637
B
-rw-r--r--
2023-07-26 18:18
to_json-i.ri
390
B
-rw-r--r--
2023-07-26 18:18
to_s-i.ri
249
B
-rw-r--r--
2023-07-26 18:18
Save
Rename
U:RDoc::NormalClass[iI"OpenStruct:ET@I"Object;To:RDoc::Markup::Document:@parts[o;;[ : @fileI"%ext/json/lib/json/add/ostruct.rb;T:0@omit_headings_from_table_of_contents_below0o;;[o:RDoc::Markup::Paragraph;[ I"KAn OpenStruct is a data structure, similar to a Hash, that allows the ;TI"Pdefinition of arbitrary attributes with their accompanying values. This is ;TI"Qaccomplished by using Ruby's metaprogramming to define methods on the class ;TI"itself.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli: textI" Examples;T@o:RDoc::Markup::Verbatim;[I"require "ostruct" ;TI" ;TI"person = OpenStruct.new ;TI" person.name = "John Smith" ;TI"person.age = 70 ;TI" ;TI"(person.name # => "John Smith" ;TI"person.age # => 70 ;TI"person.address # => nil ;T:@format0o;;[I"PAn OpenStruct employs a Hash internally to store the attributes and values ;TI"*and can even be initialized with one:;T@o;;[I"Qaustralia = OpenStruct.new(:country => "Australia", :capital => "Canberra") ;TI"B # => #<OpenStruct country="Australia", capital="Canberra"> ;T;0o;;[ I"MHash keys with spaces or characters that could normally not be used for ;TI"Nmethod calls (e.g. <code>()[]*</code>) will not be immediately available ;TI"Oon the OpenStruct object as a method for retrieval or assignment, but can ;TI"5still be reached through the Object#send method.;T@o;;[I"?measurements = OpenStruct.new("length (in inches)" => 24) ;TI"7measurements.send("length (in inches)") # => 24 ;TI" ;TI"0message = OpenStruct.new(:queued? => true) ;TI"9message.queued? # => true ;TI"%message.send("queued?=", false) ;TI":message.queued? # => false ;T;0o;;[I"IRemoving the presence of an attribute requires the execution of the ;TI"Idelete_field method as setting the property value to +nil+ will not ;TI"remove the attribute.;T@o;;[I"Kfirst_pet = OpenStruct.new(:name => "Rowdy", :owner => "John Smith") ;TI"3second_pet = OpenStruct.new(:name => "Rowdy") ;TI" ;TI"first_pet.owner = nil ;TI"Jfirst_pet # => #<OpenStruct name="Rowdy", owner=nil> ;TI"*first_pet == second_pet # => false ;TI" ;TI"$first_pet.delete_field(:owner) ;TI"?first_pet # => #<OpenStruct name="Rowdy"> ;TI")first_pet == second_pet # => true ;T;0S; ;i;I"Implementation;T@o;;[I"RAn OpenStruct utilizes Ruby's method lookup structure to find and define the ;TI"Pnecessary methods for properties. This is accomplished through the methods ;TI"0method_missing and define_singleton_method.;T@o;;[I"SThis should be a consideration if there is a concern about the performance of ;TI"Qthe objects that are created, as there is much more overhead in the setting ;TI">of these properties compared to using a Hash or a Struct.;T; I"lib/ostruct.rb;T; 0; 0; 0[ [ [ [[I" class;T[[:public[[I"json_create;FI"%ext/json/lib/json/add/ostruct.rb;T[I"new;TI"lib/ostruct.rb;T[:protected[ [:private[ [I" instance;T[[;[[I"==;T@g[I"[];F@g[I"[]=;F@g[I"as_json;F@d[I"delete_field;F@g[I"dig;F@g[I"each_pair;F@g[I" eql?;F@g[I"freeze;F@g[I" hash;F@g[I"inspect;F@g[I"marshal_dump;F@g[I"marshal_load;F@g[I" to_h;F@g[I"to_json;F@d[I" to_s;T@g[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0; 0[@ @X@XcRDoc::TopLevel