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.217.128
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby20 /
share /
ri /
2.0.0 /
system /
OpenStruct /
Delete
Unzip
Name
Size
Permission
Date
Action
%3d%3d-i.ri
438
B
-rw-r--r--
2023-07-26 17:38
%5b%5d%3d-i.ri
525
B
-rw-r--r--
2023-07-26 17:38
%5b%5d-i.ri
481
B
-rw-r--r--
2023-07-26 17:38
as_json-i.ri
381
B
-rw-r--r--
2023-07-26 17:38
cdesc-OpenStruct.ri
3.53
KB
-rw-r--r--
2023-07-26 17:38
delete_field-i.ri
625
B
-rw-r--r--
2023-07-26 17:38
each_pair-i.ri
684
B
-rw-r--r--
2023-07-26 17:38
eql%3f-i.ri
440
B
-rw-r--r--
2023-07-26 17:38
hash-i.ri
404
B
-rw-r--r--
2023-07-26 17:38
initialize_copy-i.ri
333
B
-rw-r--r--
2023-07-26 17:38
inspect-i.ri
372
B
-rw-r--r--
2023-07-26 17:38
json_create-c.ri
427
B
-rw-r--r--
2023-07-26 17:38
marshal_dump-i.ri
344
B
-rw-r--r--
2023-07-26 17:38
marshal_load-i.ri
345
B
-rw-r--r--
2023-07-26 17:38
modifiable-i.ri
421
B
-rw-r--r--
2023-07-26 17:38
new-c.ri
821
B
-rw-r--r--
2023-07-26 17:38
new_ostruct_member-i.ri
498
B
-rw-r--r--
2023-07-26 17:38
to_h-i.ri
655
B
-rw-r--r--
2023-07-26 17:38
to_json-i.ri
389
B
-rw-r--r--
2023-07-26 17:38
to_s-i.ri
230
B
-rw-r--r--
2023-07-26 17:38
Save
Rename
U:RDoc::NormalClass[iI"OpenStruct:ET@I"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"-OpenStruct serialization/deserialization;T: @fileI"%ext/json/lib/json/add/ostruct.rb;T:0@omit_headings_from_table_of_contents_below0o;;[o; ;[ 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"person.pension = 300 ;TI" ;TI",puts person.name # -> "John Smith" ;TI""puts person.age # -> 70 ;TI"#puts person.address # -> nil ;T:@format0o; ;[I"QAn OpenStruct employs a Hash internally to store the methods and values and ;TI"&can even be initialized with one:;T@o;;[I"Taustralia = OpenStruct.new(:country => "Australia", :population => 20_000_000) ;TI"Mp australia # -> <OpenStruct country="Australia" population=20000000> ;T;0o; ;[ I"THash keys with spaces or characters that would normally not be able to use for ;TI"Hmethod calls (e.g. ()[]*) will not be immediately available on the ;TI"TOpenStruct object as a method for retrieval or assignment, but can be still be ;TI",reached through the Object#send method.;T@o;;[I"?measurements = OpenStruct.new("length (in inches)" => 24) ;TI"6measurements.send("length (in inches)") # -> 24 ;TI" ;TI"3data_point = OpenStruct.new(:queued? => true) ;TI"8data_point.queued? # -> true ;TI"'data_point.send("queued?=",false) ;TI"9data_point.queued? # -> false ;T;0o; ;[I"ORemoving the presence of a method requires the execution the delete_field ;TI"Nmethod as setting the property value to +nil+ will not remove the method.;T@o;;[ I"Jfirst_pet = OpenStruct.new(:name => 'Rowdy', :owner => 'John Smith') ;TI"first_pet.owner = nil ;TI"3second_pet = OpenStruct.new(:name => 'Rowdy') ;TI" ;TI"*first_pet == second_pet # -> false ;TI" ;TI"$first_pet.delete_field(:owner) ;TI")first_pet == second_pet # -> true ;T;0S; ;i;I"Implementation:;T@o; ;[I"RAn OpenStruct utilizes Ruby's method lookup structure to and find and define ;TI"Sthe necessary methods for properties. This is accomplished through the method ;TI"&method_missing and define_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[ [U:RDoc::Constant[i I"InspectKey;FI"OpenStruct::InspectKey;T00o;;[ ; @Y;0@Y@cRDoc::NormalClass0[ [[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@o[I"[];F@o[I"[]=;F@o[I"as_json;F@l[I"delete_field;F@o[I"each_pair;F@o[I" eql?;F@o[I" hash;F@o[I"initialize_copy;F@o[I"inspect;F@o[I"marshal_dump;F@o[I"marshal_load;F@o[I" to_h;F@o[I"to_json;F@l[I" to_s;T@o[;[[I"modifiable;F@o[I"new_ostruct_member;F@o[;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@@Y@YcRDoc::TopLevel