Sha256: 99cbce823caa5af64fcd3298afaf51256b4d89574af0d1e5f454cf9f2bcf0351

Contents?: true

Size: 423 Bytes

Versions: 15

Compression:

Stored size: 423 Bytes

Contents

module SketchUpYARD
  class ClassEnumConstantHandler < YARD::Handlers::C::Base

    MATCH = %r{\bDEFINE_RUBY_CLASS_ENUM\s*\(([^,]+)\s*,\s*(\w+)\s*\)\s*;}xm
    handles MATCH
    statement_class BodyStatement

    process do
      statement.source.scan(MATCH) do |klass_name, const_name|
        type = "const"
        value = "nil"
        handle_constants(type, klass_name, const_name, value)
      end
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
yard-sketchup-1.6.0 lib/yard-sketchup/yard/handlers/class_enum_constants.rb
yard-sketchup-1.5.1 lib/yard-sketchup/yard/handlers/class_enum_constants.rb
yard-sketchup-1.5.0 lib/yard-sketchup/yard/handlers/class_enum_constants.rb
yard-sketchup-1.4.1 lib/yard-sketchup/yard/handlers/class_enum_constants.rb
yard-sketchup-1.4.0 lib/yard-sketchup/yard/handlers/class_enum_constants.rb
yard-sketchup-1.3.0 lib/yard-sketchup/yard/handlers/class_enum_constants.rb
yard-sketchup-1.2.1 lib/yard-sketchup/yard/handlers/class_enum_constants.rb
yard-sketchup-1.2.0 lib/yard-sketchup/yard/handlers/class_enum_constants.rb
yard-sketchup-1.1.6 lib/yard-sketchup/yard/handlers/class_enum_constants.rb
yard-sketchup-1.1.5 lib/yard-sketchup/yard/handlers/class_enum_constants.rb
yard-sketchup-1.1.4 lib/yard-sketchup/yard/handlers/class_enum_constants.rb
yard-sketchup-1.1.2 lib/yard-sketchup/yard/handlers/class_enum_constants.rb
yard-sketchup-1.1.1 lib/yard-sketchup/yard/handlers/class_enum_constants.rb
yard-sketchup-1.1.0 lib/yard-sketchup/yard/handlers/class_enum_constants.rb
yard-sketchup-1.0.0 lib/yard-sketchup/yard/handlers/class_enum_constants.rb