Sha256: 36579e36e5f57cac168eb55ae8c05a9030984baa10b4a4db9a0b96ae5ce85033

Contents?: true

Size: 243 Bytes

Versions: 8

Compression:

Stored size: 243 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
  def foo : -> Cell[String]
  def bar : -> (Cell[Integer | String])
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
typeprof-0.7.0 smoke/rbs-tyvar3.rb
typeprof-0.6.1 smoke/rbs-tyvar3.rb
typeprof-0.6.0 smoke/rbs-tyvar3.rb
typeprof-0.5.4 smoke/rbs-tyvar3.rb
typeprof-0.5.3 smoke/rbs-tyvar3.rb
typeprof-0.5.2 smoke/rbs-tyvar3.rb
typeprof-0.5.1 smoke/rbs-tyvar3.rb
typeprof-0.5.0 smoke/rbs-tyvar3.rb