Sha256: 658c7e90c32cdb41b6444b4533853114cd1ec54a8aca8212dd0f65496c845e6e

Contents?: true

Size: 1.36 KB

Versions: 28

Compression:

Stored size: 1.36 KB

Contents

class Foo
  attr_accessor :ignoreme

  # IMPLICIT METHOD!
  # @return [String]
  just_a_method_for :implicit0
  
  # Not recognized
  just_a_method_for :implicit_invalid
  
  #
  ## IS NOT RECOGNIZED!
  just_a_method_for :implicit_invalid2

  ##
  # IS RECOGNIZED!
  just_a_method_for 'implicit_valid'

  # @attribute [r]
  # @return [Numeric] a number
  a_readable_attribute :attr1
  
  # @attribute [w]
  a_writable_attribute :attr2, 'bar'

  # @attribute
  default_attribute :attr3
  
  # @attribute custom
  default_attribute :attr4
  
  # @method xyz(a, b, c)
  # The foo method
  # @param [String] a
  # @visibility protected
  # @scope class
  foo_bar

  # @macro property
  # @method $1(${3-})
  # A $0 that is awesome.
  # @param $3 first parameter
  # @return [$2] the property $1
  property :name, String, :a, :b, :c
  
  # @macro property
  property :age, Fixnum, :value
  
  # This is just for x
  # @macro [attach] parser
  #   @method $1(opts = {})
  #   @return NOTHING!
  parser :x
  
  parser :c_parser
  
  # @macro [attach] none
  # @method none(foo, bar)
  none
  
  # @macro something
  # @overload $1(a, b, c)
  something :qux
  
  # @overload qux2(a, b, c)
  something
end

class Bar
  parser :x_parser
end

class Baz < Foo
  parser :y_parser
  none { }
end

# @method my_other_method
# Docstring for method
method_that_makes_a_method

# @macro something
foobarbaz :beep

Version data entries

28 entries across 28 versions & 4 rubygems

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