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.2.0 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.1.12 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.1.11 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.1.10 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.1.9 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.1.8 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.1.7 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.1.6 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.1.5 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.1.4 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.1.3 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.1.2 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.1.1 spec/support/analyzer/19_proc_call_vs_yield.rb
fasterer-0.1.0 spec/support/analyzer/19_proc_call_vs_yield.rb