Sha256: eeb4b51239475e441987c2f0cc5f9d025d25e591dbd72d1bef5181bb973c7b86

Contents?: true

Size: 430 Bytes

Versions: 3

Compression:

Stored size: 430 Bytes

Contents

class YARD::Handlers::C::MixinHandler < YARD::Handlers::C::Base
  MATCH = /rb_include_module\s*\(\s*(\w+?),\s*(\w+?)\s*\)/
  handles MATCH
  statement_class BodyStatement

  process do
    statement.source.scan(MATCH) do |klass_var, mixin_var|
      namespace = namespace_for_variable(klass_var)
      ensure_loaded!(namespace)
      namespace.mixins(:instance) << namespace_for_variable(mixin_var)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
deg-yard-0.8.7.4 lib/yard/handlers/c/mixin_handler.rb
deg-yard-0.8.7.3 lib/yard/handlers/c/mixin_handler.rb
deg-yard-0.8.7.1 lib/yard/handlers/c/mixin_handler.rb