Sha256: c81974569512ad55e797de8e9b4077dc7c6f5fd8e93153c77c0019a0d36a6361

Contents?: true

Size: 615 Bytes

Versions: 3

Compression:

Stored size: 615 Bytes

Contents

module A
  class B
	notaconstant = 2
    SOMECONSTANT= "hello"

    def method
      SOMECONSTANT = "don't document this"
    end

    MYCONSTANT = A +
      B +
      C +
      D
  end
end

MyClass = Struct.new(:a, :b, :c)
NotMyClass = Struct.new("NotMyClass2", :b, :c)
MyEmptyStruct = Struct.new

MyStructWithConstant = Struct.new do
  # A constant.
  CONSTANT = 42
end

# A crazy struct.
#
# @attr [String] bar An attr
# @attr [Number] baz Another attr
# @!attribute new_syntax
#   Attribute defined with the new syntax
#   @return [Symbol] something useful
DocstringStruct = Struct.new(:bar, :baz, :new_syntax)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yard-0.9.12 spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.11 spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.10 spec/handlers/examples/constant_handler_001.rb.txt