class PuppetStrings::Yard::CodeObjects::Base
Implements the base code object.
Public Class Methods
Source
# File lib/puppet-strings/yard/code_objects/base.rb, line 8 def self.new(*args) # Skip the super class' implementation because it detects :: in names and this will cause namespaces in the output we don't want object = Object.class.instance_method(:new).bind_call(self, *args) existing = YARD::Registry.at(object.path) object = existing if existing.instance_of?(self) yield(object) if block_given? object end
Allocates a new code object. @param [Array] args The arguments to initialize the code object with. @return Returns the code object.