Sha256: 9acdee78b6de77a7fce1f11e677ab62d04e716767e4ec048d33ca8f76d9a1d82

Contents?: true

Size: 251 Bytes

Versions: 14

Compression:

Stored size: 251 Bytes

Contents

def foo
  cell = Cell.new(42)
  cell.map {|s| (s + 1).to_s }
end

def bar
  cell = Cell.new(42)
  cell.map! {|s| (s + 1).to_s }
  cell
end

__END__
# Classes
class Object
  private
  def foo: -> Cell[String]
  def bar: -> (Cell[Integer | String])
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
typeprof-0.20.0 smoke/rbs-tyvar3.rb
typeprof-0.15.3 smoke/rbs-tyvar3.rb
typeprof-0.15.2 smoke/rbs-tyvar3.rb
typeprof-0.15.1 smoke/rbs-tyvar3.rb
typeprof-0.15.0 smoke/rbs-tyvar3.rb
typeprof-0.14.1 smoke/rbs-tyvar3.rb
typeprof-0.14.0 smoke/rbs-tyvar3.rb
typeprof-0.13.0 smoke/rbs-tyvar3.rb
typeprof-0.12.0 smoke/rbs-tyvar3.rb
typeprof-0.11.0 smoke/rbs-tyvar3.rb
typeprof-0.10.0 smoke/rbs-tyvar3.rb
typeprof-0.9.2 smoke/rbs-tyvar3.rb
typeprof-0.9.1 smoke/rbs-tyvar3.rb
typeprof-0.9.0 smoke/rbs-tyvar3.rb