⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
ruby
/
gems
/
3.0.0
/
gems
/
typeprof-0.12.0
/
smoke
/
Edit File: ivar2.rb
class Foo def initialize @array = [] @hash = {} end def set @array << 1 @array << "str" @array << :sym @hash[:a] = 1 @hash[:b] = "str" @hash[:c] = :sym end attr_reader :array, :hash end Foo.new.array Foo.new.hash Foo.new.set __END__ # Classes class Foo def initialize: -> Hash[bot, bot] def set: -> :sym attr_reader array: Array[:sym | Integer | String] attr_reader hash: {a: Integer, b: String, c: :sym} end
Simpan