Sha256: be47c863a0716a7feee01a016f1c2b8f1091a5d44c723ce41a2d71f9d493f465

Contents?: true

Size: 345 Bytes

Versions: 6

Compression:

Stored size: 345 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
typeprof-0.14.1 smoke/attr.rb
typeprof-0.14.0 smoke/attr.rb
typeprof-0.13.0 smoke/attr.rb
typeprof-0.12.0 smoke/attr.rb
typeprof-0.11.0 smoke/attr.rb
typeprof-0.10.0 smoke/attr.rb