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.103
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby33 /
share /
ri /
system /
Data /
Delete
Unzip
Name
Size
Permission
Date
Action
%3d%3d-i.ri
905
B
-rw-r--r--
2026-04-07 17:22
cdesc-Data.ri
3.14
KB
-rw-r--r--
2026-04-07 17:22
deconstruct-i.ri
987
B
-rw-r--r--
2026-04-07 17:22
deconstruct_keys-i.ri
1.12
KB
-rw-r--r--
2026-04-07 17:22
define-c.ri
1.53
KB
-rw-r--r--
2026-04-07 17:22
eql%3f-i.ri
912
B
-rw-r--r--
2026-04-07 17:22
hash-i.ri
1.06
KB
-rw-r--r--
2026-04-07 17:22
inspect-i.ri
726
B
-rw-r--r--
2026-04-07 17:22
members-c.ri
511
B
-rw-r--r--
2026-04-07 17:22
members-i.ri
541
B
-rw-r--r--
2026-04-07 17:22
new-c.ri
1.88
KB
-rw-r--r--
2026-04-07 17:22
to_h-i.ri
1.02
KB
-rw-r--r--
2026-04-07 17:22
to_s-i.ri
684
B
-rw-r--r--
2026-04-07 17:22
with-i.ri
1.31
KB
-rw-r--r--
2026-04-07 17:22
Save
Rename
U:RDoc::NormalClass[iI" Data:ET@I"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"E\Class \Data provides a convenient way to define simple classes ;TI"for value-alike objects.;To:RDoc::Markup::BlankLine o; ;[I"#The simplest example of usage:;T@o:RDoc::Markup::Verbatim;[I"+Measure = Data.define(:amount, :unit) ;TI" ;TI"4# Positional arguments constructor is provided ;TI"'distance = Measure.new(100, 'km') ;TI"/#=> #<data Measure amount=100, unit="km"> ;TI" ;TI"1# Keyword arguments constructor is provided ;TI"2weight = Measure.new(amount: 50, unit: 'kg') ;TI".#=> #<data Measure amount=50, unit="kg"> ;TI" ;TI"0# Alternative form to construct an object: ;TI" speed = Measure[10, 'mPh'] ;TI"/#=> #<data Measure amount=10, unit="mPh"> ;TI" ;TI"*# Works with keyword arguments, too: ;TI".area = Measure[amount: 1.5, unit: 'm^2'] ;TI"0#=> #<data Measure amount=1.5, unit="m^2"> ;TI" ;TI"(# Argument accessors are provided: ;TI"distance.amount #=> 100 ;TI"distance.unit #=> "km" ;T:@format0o; ;[I"AConstructed object also has a reasonable definitions of #== ;TI"Koperator, #to_h hash conversion, and #deconstruct / #deconstruct_keys ;TI"$to be used in pattern matching.;T@o; ;[I"C::define method accepts an optional block and evaluates it in ;TI"Cthe context of the newly defined class. That allows to define ;TI"additional methods:;T@o;;[I".Measure = Data.define(:amount, :unit) do ;TI" def <=>(other) ;TI"E return unless other.is_a?(self.class) && other.unit == unit ;TI"! amount <=> other.amount ;TI" end ;TI" ;TI" include Comparable ;TI" end ;TI" ;TI"0Measure[3, 'm'] < Measure[5, 'm'] #=> true ;TI"(Measure[3, 'm'] < Measure[5, 'kg'] ;TI"A# comparison of Measure with Measure failed (ArgumentError) ;T;0o; ;[ I"BData provides no member writers, or enumerators: it is meant ;TI"@to be a storage for immutable atomic values. But note that ;TI"Lif some of data members is of a mutable class, Data does no additional ;TI"immutability enforcement:;T@o;;[I"+Event = Data.define(:time, :weekdays) ;TI"1event = Event.new('18:00', %w[Tue Wed Fri]) ;TI"D#=> #<data Event time="18:00", weekdays=["Tue", "Wed", "Fri"]> ;TI" ;TI"C# There is no #time= or #weekdays= accessors, but changes are ;TI"# still possible: ;TI"event.weekdays << 'Sat' ;TI"event ;TI"K#=> #<data Event time="18:00", weekdays=["Tue", "Wed", "Fri", "Sat"]> ;T;0o; ;[I"?See also Struct, which is a similar concept, but has more ;TI"Dcontainer-alike API, allowing to change contents of the object ;TI"and enumerate it.;T: @fileI" struct.c;T:0@omit_headings_from_table_of_contents_below0; 0;0[ [ [ [[I" class;T[[:public[ [:protected[ [:private[[I"define;TI" struct.c;T[I"members;T@j[I"new;T@j[I" instance;T[[;[ [;[ [;[[I"==;T@j[I"deconstruct;T@j[I"deconstruct_keys;T@j[I" eql?;T@j[I" hash;T@j[I"inspect;T@j[I"members;T@j[I" to_h;T@j[I" to_s;T@j[I" with;T@j[ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[I"lib/pp.rb;TI" struct.c;T@ZcRDoc::TopLevel