Sha256: d69d021209af681a8d37d38e2aa68e39c741e648e18c451fa237a5e5a269e1ff

Contents?: true

Size: 412 Bytes

Versions: 76

Compression:

Stored size: 412 Bytes

Contents

class YARD::Handlers::C::ConstantHandler < YARD::Handlers::C::Base
  MATCH = %r{\brb_define_((?:readonly_)?variable|(?:global_)?const)
                \s*\((?:\s*(\w+),)?\s*"(\w+)",\s*(.*?)\s*\)\s*;}xm
  handles MATCH
  statement_class BodyStatement

  process do
    statement.source.scan(MATCH) do |type, var_name, const_name, value|
      handle_constants(type, var_name, const_name, value)
    end
  end
end

Version data entries

76 entries across 59 versions & 8 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/yard-0.9.2/lib/yard/handlers/c/constant_handler.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/lib/yard/handlers/c/constant_handler.rb
yard-0.9.5 lib/yard/handlers/c/constant_handler.rb
yard-0.9.4 lib/yard/handlers/c/constant_handler.rb
yard-0.9.3 lib/yard/handlers/c/constant_handler.rb
yard-0.9.2 lib/yard/handlers/c/constant_handler.rb
yard-0.9.1 lib/yard/handlers/c/constant_handler.rb
yard-0.9.0 lib/yard/handlers/c/constant_handler.rb
yard-0.8.7.6 lib/yard/handlers/c/constant_handler.rb
yard-0.8.7.5 lib/yard/handlers/c/constant_handler.rb
climine-0.0.7 vendor/bundle/ruby/2.1.0/gems/yard-0.8.7.3/lib/yard/handlers/c/constant_handler.rb
climine-0.0.7 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/c/constant_handler.rb
climine-0.0.6 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/c/constant_handler.rb
climine-0.0.5 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/c/constant_handler.rb
yard-0.8.7.4 lib/yard/handlers/c/constant_handler.rb
climine-0.0.4 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/c/constant_handler.rb
climine-0.0.3 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/c/constant_handler.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/yard-0.8.7.3/lib/yard/handlers/c/constant_handler.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/c/constant_handler.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/c/constant_handler.rb