Sha256: c4abb63c90369c9c528c266577190d2e7355b424fe94b30938aad6a0a1faf717

Contents?: true

Size: 847 Bytes

Versions: 56

Compression:

Stored size: 847 Bytes

Contents

class Testing
  # Ignore yields outside methods
  yield x, y, z 
  
  # Should document this
  def mymethod
    yield
  end
  
  # Has yield and yieldparam documentation
  # @yield [a, b] Blah
  # @yieldparam a Blah
  # @yieldparam b Blah
  def mymethod2
    yield(b, a) # Yield something else
  end
  
  # Has yield documentation only
  # @yield [a, b]
  def mymethod3 
    yield self # Should not be changed
  end
  
  # Has yieldparam documentation only
  # @yieldparam _self BLAH
  def mymethod4
    yield self
  end
  
  # Some weird possibilities..
  # Document it all.
  
  
  def mymethod5
    yield :a, b, self, File.read('file', 'w'), CONSTANT if x == 2
  end
  
  def mymethod6
    yield(b, a)
  end
  
  def mymethod7
    yield a
    yield b
  end
  
  def mymethod8
    yield self
  end
  
  def mymethod9
    yield super
  end
end
  

Version data entries

56 entries across 56 versions & 4 rubygems

Version Path
challah-0.6.2 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/yield_handler_001.rb.txt
challah-0.6.1 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/yield_handler_001.rb.txt
challah-0.6.0 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/yield_handler_001.rb.txt
challah-0.5.4 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/yield_handler_001.rb.txt
challah-0.5.3 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/yield_handler_001.rb.txt
challah-0.5.2 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/yield_handler_001.rb.txt
challah-0.5.1 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/yield_handler_001.rb.txt
challah-0.5.0 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/yield_handler_001.rb.txt
challah-0.4.1 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/yield_handler_001.rb.txt
challah-0.4.0 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/yield_handler_001.rb.txt
challah-0.3.5 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/yield_handler_001.rb.txt
challah-0.3.4 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/yield_handler_001.rb.txt
challah-0.3.3 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/yield_handler_001.rb.txt
challah-0.3.2 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/yield_handler_001.rb.txt
challah-0.3.1 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/yield_handler_001.rb.txt
challah-0.3.0 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/yield_handler_001.rb.txt
challah-0.2.1 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/yield_handler_001.rb.txt
challah-0.2.0 vendor/bundle/gems/yard-0.7.5/spec/handlers/examples/yield_handler_001.rb.txt
yard-0.7.5 spec/handlers/examples/yield_handler_001.rb.txt
nutshell-crm-0.0.6.alpha vendor/bundle/gems/yard-0.7.4/spec/handlers/examples/yield_handler_001.rb.txt