HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/ruby/gems/3.0.0/gems/typeprof-0.12.0/smoke/attr.rb
class Foo
  def initialize(a)
    @a = a
  end
  attr_reader :a

  attr_writer :b
  def get_b
    @b
  end

  attr_accessor :c
end

foo = Foo.new(:aaa)
foo.b = :bbb
foo.get_b
foo.c = :ccc

__END__
# Classes
class Foo
  def initialize: (:aaa a) -> :aaa
  attr_reader a: :aaa
  attr_writer b: :bbb
  def get_b: -> :bbb
  attr_accessor c: :ccc
end