Class: YARD::DM::Predefined::Legacy::PredefineHandler

Inherits:
Handlers::Ruby::Legacy::Base
  • Object
show all
Defined in:
lib/yard-dm-predefined/legacy/predefine_handler.rb

Instance Method Summary collapse

Instance Method Details

#processObject



9
10
11
12
13
14
15
16
17
18
# File 'lib/yard-dm-predefined/legacy/predefine_handler.rb', line 9

def process
  nobj = namespace
  name = statement.tokens[2,1].to_s[1..-1]

  register MethodObject.new(nobj, name, :class) do |o|
    o.visibility = :public
    o.source = statement.source
    o.signature = "def #{nobj}.#{name}"
  end
end