Sha256: e794a2922fbaa8f2e4fd7c16bb7e4bba4003ee0b1f92de4e99abada5ca8c9847

Contents?: true

Size: 392 Bytes

Versions: 2

Compression:

Stored size: 392 Bytes

Contents

require 'yard'

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

        handles method_call(:module_eval), method_call(:class_eval), method_call(:instance_eval)

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

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
ronin-0.3.0 lib/ronin/yard/handlers/ruby/eval_block_handler.rb
parameters-0.1.8 lib/parameters/yard/handlers/ruby/eval_block_handler.rb