REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.51 KB
Close
/proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/OpenStruct/cdesc-OpenStruct.yaml
Text
Base64
--- !ruby/object:RI::ClassDescription attributes: [] class_methods: - !ruby/object:RI::MethodSummary name: new comment: - !ruby/struct:SM::Flow::P body: "OpenStruct allows you to create data objects and set arbitrary attributes. For example:" - !ruby/struct:SM::Flow::VERB body: " require 'ostruct'\n\n record = OpenStruct.new\n record.name = "John Smith"\n record.age = 70\n record.pension = 300\n\n puts record.name # -> "John Smith"\n puts record.address # -> nil\n" - !ruby/struct:SM::Flow::P body: It is like a hash with a different way to access the data. In fact, it is implemented with a hash, and you can initialize it with one. - !ruby/struct:SM::Flow::VERB body: " hash = { "country" => "Australia", :population => 20_000_000 }\n data = OpenStruct.new(hash)\n\n p data # -> <OpenStruct country="Australia" population=20000000>\n" constants: [] full_name: OpenStruct includes: [] instance_methods: - !ruby/object:RI::MethodSummary name: == - !ruby/object:RI::MethodSummary name: delete_field - !ruby/object:RI::MethodSummary name: initialize_copy - !ruby/object:RI::MethodSummary name: inspect - !ruby/object:RI::MethodSummary name: marshal_dump - !ruby/object:RI::MethodSummary name: marshal_load - !ruby/object:RI::MethodSummary name: modifiable - !ruby/object:RI::MethodSummary name: new_ostruct_member - !ruby/object:RI::MethodSummary name: to_s name: OpenStruct superclass: Object
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 11
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
%3d%3d-i.yaml
256 B
lrw-r--r--
2023-07-26 13:47:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cdesc-OpenStruct.yaml
1.51 KB
lrw-r--r--
2023-07-26 13:47:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
delete_field-i.yaml
262 B
lrw-r--r--
2023-07-26 13:47:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
initialize_copy-i.yaml
268 B
lrw-r--r--
2023-07-26 13:47:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
inspect-i.yaml
319 B
lrw-r--r--
2023-07-26 13:47:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
marshal_dump-i.yaml
182 B
lrw-r--r--
2023-07-26 13:47:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
marshal_load-i.yaml
183 B
lrw-r--r--
2023-07-26 13:47:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
modifiable-i.yaml
181 B
lrw-r--r--
2023-07-26 13:47:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
new-c.yaml
715 B
lrw-r--r--
2023-07-26 13:47:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
new_ostruct_member-i.yaml
198 B
lrw-r--r--
2023-07-26 13:47:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
to_s-i.yaml
223 B
lrw-r--r--
2023-07-26 13:47:12
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).