Sha256: 655ccd1bb45a009fc61e1fbb2eb475b27f3259f768d9b48226a67c0f423ae99a

Contents?: true

Size: 387 Bytes

Versions: 4

Compression:

Stored size: 387 Bytes

Contents

require 'yard'

module YARD
  module Handlers
    module Ruby
      class MetaclassEvalHandler < YARD::Handlers::Ruby::Base

        handles method_call(:metaclass_eval)

        def process
          if (block = statement.jump(:brace_block, :do_block).last)
            parse_block(block, :namespace => namespace, :scope => :class)
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
rprogram-0.1.8 lib/rprogram/yard/handlers/ruby/metaclass_eval_handler.rb
ronin-0.3.0 lib/ronin/yard/handlers/ruby/metaclass_eval_handler.rb
rprogram-0.1.7 lib/rprogram/yard/handlers/ruby/metaclass_eval_handler.rb
parameters-0.1.8 lib/parameters/yard/handlers/ruby/metaclass_eval_handler.rb