lib/yard/lib/yard/code_objects/base.rb
def copy_to(other)
        copyable_attributes.each do |ivar|
          ivar = "@#{ivar}"
          other.instance_variable_set(ivar, instance_variable_get(ivar))
        end
        other.docstring = docstring.to_raw
        other
      end
# Copies all data in this object to another code object, except for
# uniquely identifying information (path, namespace, name, scope).
#
# @param [Base] other the object to copy data to
# @return [Base] the other object
# @since 0.8.0
Copies all data in this object to another code object, except for
uniquely identifying information (path, namespace, name, scope).
Copies all data in this object to another code object except for uniquely identifying information ( path namespace name scope ) .
def copy_to(other)
        copyable_attributes.each do |ivar|
          ivar = "@#{ivar}"
          other.instance_variable_set(ivar, instance_variable_get(ivar))
        end
        other.docstring = docstring.to_raw
        other
      end
def copy_to ( other ) copyable_attributes . each do | ivar | ivar = "@#{ivar}" other . instance_variable_set ( ivar , instance_variable_get ( ivar ) ) end other . docstring = docstring . to_raw other end
Copies all data in this object to another code object, except for
uniquely identifying information (path, namespace, name, scope).
Copies all data in this object to another code object except for uniquely identifying information ( path namespace name scope ) .
the other object
the other object
Base
other
other the object to copy data to
other the object to copy data to
since
None