Sha256: 215bad92dcaca0efa8e62599e03342e5ce9a17ae524326dd481fa76d5b64eaa3

Contents?: true

Size: 295 Bytes

Versions: 32

Compression:

Stored size: 295 Bytes

Contents

module A
  # @implements A

  def count
    if block_given?
      n = 0

      each do |_|
        n = n + 1
      end

      n
    else
      0
    end
  end

  # ok
  block_given?

  # !expects NoMethodError: type=singleton(::A), method=no_such_method_in_module
  no_such_method_in_module
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
steep-0.39.0 smoke/module/c.rb
steep-0.38.0 smoke/module/c.rb
steep-0.37.0 smoke/module/c.rb
steep-0.36.0 smoke/module/c.rb
steep-0.35.0 smoke/module/c.rb
steep-0.34.0 smoke/module/c.rb
steep-0.33.0 smoke/module/c.rb
steep-0.32.0 smoke/module/c.rb
steep-0.31.1 smoke/module/c.rb
steep-0.31.0 smoke/module/c.rb
steep-0.30.0 smoke/module/c.rb
steep-0.29.0 smoke/module/c.rb
steep-0.28.0 smoke/module/c.rb
steep-0.27.0 smoke/module/c.rb
steep-0.25.0 smoke/module/c.rb
steep-0.24.0 smoke/module/c.rb
steep-0.23.0 smoke/module/c.rb
steep-0.22.0 smoke/module/c.rb
steep-0.21.0 smoke/module/c.rb
steep-0.20.0 smoke/module/c.rb