Sha256: 1c4a7f2f4a868da58d010aaa09c9e47da725f1a67e1cf2350f68436f5751fc32

Contents?: true

Size: 542 Bytes

Versions: 16

Compression:

Stored size: 542 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

# 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 usefull
DocstringStruct = Struct.new(:bar, :baz, :new_syntax)

Version data entries

16 entries across 13 versions & 4 rubygems

Version Path
yard-0.9.9 spec/handlers/examples/constant_handler_001.rb.txt
etude_for_ruby-0.1.4 vendor/bundle/ruby/2.4.0/gems/yard-0.9.8/spec/handlers/examples/constant_handler_001.rb.txt
etude_for_ruby-0.1.4 vendor/bundle/ruby/2.2.0/gems/yard-0.9.8/spec/handlers/examples/constant_handler_001.rb.txt
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/yard-0.9.8/spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.8 spec/handlers/examples/constant_handler_001.rb.txt
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/spec/handlers/examples/constant_handler_001.rb.txt
abaci-0.3.0 vendor/bundle/gems/yard-0.9.7/spec/handlers/examples/constant_handler_001.rb.txt
abaci-0.3.0 vendor/bundle/gems/yard-0.9.2/spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.7 spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.6 spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.5 spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.4 spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.3 spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.2 spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.1 spec/handlers/examples/constant_handler_001.rb.txt
yard-0.9.0 spec/handlers/examples/constant_handler_001.rb.txt