Sha256: cabadde6cd9af1ffd4db28ab5c8addfca251e8c49eff07d4723ec7335b1de258

Contents?: true

Size: 665 Bytes

Versions: 10

Compression:

Stored size: 665 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
  # Special constant (empty symbol)
  EMPTY = :''
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

10 entries across 10 versions & 1 rubygems

Version Path
yard-0.9.24 spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.23 spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.22 spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.21 spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.20 spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.19 spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.16 spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.15 spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.14 spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.13 spec/handlers/examples/constant_handler_001.rb.txt