Sha256: f47716957e7f8d77420d851fe1ceaa071fd3eba952fe0d09c6bd5ec040c9ab16

Contents?: true

Size: 501 Bytes

Versions: 34

Compression:

Stored size: 501 Bytes

Contents

# Should detect only the block.call, not the others.
def call_me(number, zumba, &block)
  4.call
  [1,2].call
  block.call
  b.call
  abakus(:red).calling()
end

# Should detect only the first block call.
def call_meeee(number, zumba, &block)
  block.call()
  block.call
end

# Shouldn't detect the block call since it isn't in the arguments.
def call_meeee(number, zumba)
  block.call
end

# Should detect the block call with arguments.
def call_meeee(number, zumba, &block)
  block.call(number)
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
fasterer-0.11.0 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.10.1 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.10.0 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.9.0 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.8.3 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.8.2 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.8.1 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.8.0 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.7.1 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.7.0 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.6.0 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.5.1 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.5.0 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.4.2 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.4.1 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.4.0 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.3.2 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.3.1 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.3.0 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.2.1 spec/support/analyzer/19_proc_call_vs_yield.rb