Sha256: 03adaa06d6268fcb9e68eb5428d89bf745f7a74a4a995a74737fc354b814454d

Contents?: true

Size: 429 Bytes

Versions: 76

Compression:

Stored size: 429 Bytes

Contents

class YARD::Handlers::C::AttributeHandler < YARD::Handlers::C::Base
  MATCH = %r{rb_define_attr\s*\(\s*([\w\.]+),\s*"([^"]+)",\s*(0|1)\s*,\s*(0|1)\s*\)}
  handles MATCH

  process do
    return if ToplevelStatement == statement
    return if Comment === statement && statement.type != :multi
    statement.source.scan(MATCH) do |var_name, name, read, write|
      handle_attribute(var_name, name, read, write)
    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.1/lib/yard/handlers/c/attribute_handler.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.2/lib/yard/handlers/c/attribute_handler.rb
yard-0.9.5 lib/yard/handlers/c/attribute_handler.rb
yard-0.9.4 lib/yard/handlers/c/attribute_handler.rb
yard-0.9.3 lib/yard/handlers/c/attribute_handler.rb
yard-0.9.2 lib/yard/handlers/c/attribute_handler.rb
yard-0.9.1 lib/yard/handlers/c/attribute_handler.rb
yard-0.9.0 lib/yard/handlers/c/attribute_handler.rb
yard-0.8.7.6 lib/yard/handlers/c/attribute_handler.rb
yard-0.8.7.5 lib/yard/handlers/c/attribute_handler.rb
climine-0.0.7 vendor/bundle/ruby/2.1.0/gems/yard-0.8.7.3/lib/yard/handlers/c/attribute_handler.rb
climine-0.0.7 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/c/attribute_handler.rb
climine-0.0.6 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/c/attribute_handler.rb
climine-0.0.5 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/c/attribute_handler.rb
yard-0.8.7.4 lib/yard/handlers/c/attribute_handler.rb
climine-0.0.4 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/c/attribute_handler.rb
climine-0.0.3 vendor/bundle/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/c/attribute_handler.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/yard-0.8.7.3/lib/yard/handlers/c/attribute_handler.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/c/attribute_handler.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/yard-0.8.7.3/lib/yard/handlers/c/attribute_handler.rb