Sha256: 3ba04102ff51229d4b34c8a5042eedf828cd76b5586ce85c65c7c22cd0d100de

Contents?: true

Size: 320 Bytes

Versions: 14

Compression:

Stored size: 320 Bytes

Contents

def cond1?
  rand < 0.5
end

def cond2?
  rand < 0.5
end

def foo
  while true
    if cond1? .. cond2?
      return 42
    end
    if cond1? .. cond2?
      return "str"
    end
  end
  return
end

__END__
# Classes
class Object
  private
  def cond1?: -> bool
  def cond2?: -> bool
  def foo: -> (Integer | String)
end

Version data entries

14 entries across 14 versions & 1 rubygems

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