Sha256: 08c9dac629a3e8192c70d8cc139f5e16d58c6afddd2787e1fa3d5dd444ce9600

Contents?: true

Size: 320 Bytes

Versions: 2

Compression:

Stored size: 320 Bytes

Contents

# (see Ruby::ExtendHandler)
class YARD::Handlers::Ruby::Legacy::ExtendHandler < YARD::Handlers::Ruby::Legacy::MixinHandler
  handles /\Aextend(\s|\()/

  def scope; :class end

  private

  def process_mixin(mixin)
    if mixin == "self"
      namespace.mixins(scope) << namespace
    else
      super
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yard-0.6.1 lib/yard/handlers/ruby/legacy/extend_handler.rb
yard-0.6.0 lib/yard/handlers/ruby/legacy/extend_handler.rb