⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.25
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
ruby
/
gems
/
3.0.0
/
gems
/
typeprof-0.12.0
/
smoke
/
View File Name :
attr-vis.rb
class Foo def initialize @foo = 42 end private attr_accessor :foo public def get_foo foo end def set_foo(arg) self.foo = arg end def get_bar bar end def set_bar(arg) self.bar = arg end end Foo.new.set_foo("str") Foo.new.set_bar("str") __END__ # Errors smoke/attr-vis.rb:20: [warning] inconsistent assignment to RBS-declared variable # Classes class Foo def initialize: -> Integer private attr_accessor foo: Integer | String public def get_foo: -> (Integer | String) def set_foo: (String arg) -> String def get_bar: -> Integer def set_bar: (String arg) -> String end