Sha256: cbc83cff2315406bd7ee111af07ef5288d3a4253f717e09f33bfb966c9fe6fe6
Contents?: true
Size: 699 Bytes
Versions: 2
Compression:
Stored size: 699 Bytes
Contents
# frozen_string_literal: true module TestApp module BlockReturn SomeError = Class.new(StandardError) # @return [Integer] def self.entrypoint method_that_executes_normal_block do 1 end method_that_passes_block_with_return_keyword_along do return 1 end 'foo' end # @return [Integer] def self.method_that_passes_block_with_return_keyword_along(&block) method_that_yield_block_with_return_keyword(&block) 2 end # @return [Integer] def self.method_that_yield_block_with_return_keyword yield 3 end def self.method_that_executes_normal_block yield 4 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yardcheck-0.0.3 | test_app/lib/test_app/block_return.rb |
yardcheck-0.0.2 | test_app/lib/test_app/block_return.rb |