Class: YARD::Contextify::Legacy::ContextifyHandler
- Inherits:
-
Handlers::Ruby::Legacy::Base
- Object
- Handlers::Ruby::Legacy::Base
- YARD::Contextify::Legacy::ContextifyHandler
- Defined in:
- lib/yard-contextify/legacy/contextify_handler.rb
Instance Method Summary collapse
Instance Method Details
#process ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/yard-contextify/legacy/contextify_handler.rb', line 8 def process nobj = ModuleObject.new(:root, 'Kernel') mscope = scope name = statement.tokens[2,1].to_s[1..-1] register MethodObject.new(nobj, name, :instance) do |o| o.visibility = :public o.source = statement.source o.signature = "def #{name}" o.parameters = [['*args', nil], ['&block', nil]] end end |