Sha256: d1c8b82dceb36ab0cc35be3a61ce59c68def2b26a1f0fba0913527f96d55a8ed

Contents?: true

Size: 1.98 KB

Versions: 97

Compression:

Stored size: 1.98 KB

Contents

# Docstring
class A
  module B; end
  private
  class B::C < String;
    def method1; end
    def method2; end
  end
  class X<B::C
  end
  class<<self
    def classmethod1; end
  end

  class << A::B::C; def Hello; end end
end

module B
  class A < A
  end
end

class RT < XX::RT; end

class Test1 < R "something"
end

class Test2 < R(/something/)
end

class Test3 < Struct.new(:foo, :bar)
end

class Test4 < OStruct.new
end

class Test5 < DelegateClass(Array)
end

class Test6 < NotDelegateClass(Array)
end

class ::MyRootClass
end

module Holder
  module SomeMod
    class Importer
      def parse; end
    end
  end
end

module Holder
  class Importer < Holder::SomeMod::Importer
    def a; end
  end
end

class String; end
CONST = String
class << CONST
  def classmethod; end
end

module Q
  class Logger < ::Logger; end
  class Foo < ::Logger; end
end

class << Symbol
  alias toString to_s
end

# Docstring
class Zebra
end

# Docstring 2

class Zebra
end

class Zebra
end

# A simple struct
class RegularStruct < Struct; end
class RegularStruct2 < ::Struct; end

class Point < Struct.new(:x, :y, :z)
end

class AnotherPoint < Struct.new('XPoint', :a, :b, :c, :description)
end

# @attr [IO] input the input stream
# @attr mode the mode to read
# @attr [Proc, #call] someproc the proc to run
class DoccedStruct < Struct.new(:input, :mode, :someproc)
end

# @attr [String] first the first entry
# @attr_reader [Fixnum] second this only has a reader
# @attr_writer [Array] third this only has a writer
# @attr_reader [#read] fourth returns a proc that reads
# @attr_writer [IO] fourth sets the proc that writes stuff
class SemiDoccedStruct < Struct.new(:first, :second, :third, :fourth)
end

# @attr [String] first the first entry
# @attr_reader [Fixnum] second this only has a reader
# @attr_writer [Array] third this only has a writer
# @attr_reader [#read] fourth returns a proc that reads
# @attr_writer [IO] fourth sets the proc that writes stuff
class NotAStruct; end

class Outer1
  class Inner1 < self; end
end

Version data entries

97 entries across 78 versions & 10 rubygems

Version Path
yard-0.9.24 spec/handlers/examples/class_handler_001.rb.txt
yard-0.9.23 spec/handlers/examples/class_handler_001.rb.txt
yard-0.9.22 spec/handlers/examples/class_handler_001.rb.txt
yard-0.9.21 spec/handlers/examples/class_handler_001.rb.txt
yard-0.9.20 spec/handlers/examples/class_handler_001.rb.txt
yard-0.9.19 spec/handlers/examples/class_handler_001.rb.txt
yard-0.9.16 spec/handlers/examples/class_handler_001.rb.txt
yard-0.9.15 spec/handlers/examples/class_handler_001.rb.txt
yard-0.9.14 spec/handlers/examples/class_handler_001.rb.txt
yard-0.9.13 spec/handlers/examples/class_handler_001.rb.txt
yard-0.9.12 spec/handlers/examples/class_handler_001.rb.txt
yard-0.9.11 spec/handlers/examples/class_handler_001.rb.txt
yard-0.9.10 spec/handlers/examples/class_handler_001.rb.txt
yard-0.9.9 spec/handlers/examples/class_handler_001.rb.txt
etude_for_ruby-0.1.4 vendor/bundle/ruby/2.4.0/gems/yard-0.9.8/spec/handlers/examples/class_handler_001.rb.txt
etude_for_ruby-0.1.4 vendor/bundle/ruby/2.2.0/gems/yard-0.9.8/spec/handlers/examples/class_handler_001.rb.txt
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/yard-0.9.8/spec/handlers/examples/class_handler_001.rb.txt
yard-0.9.8 spec/handlers/examples/class_handler_001.rb.txt
abaci-0.3.0 vendor/bundle/gems/yard-0.9.7/spec/handlers/examples/class_handler_001.rb.txt
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/spec/handlers/examples/class_handler_001.rb.txt