lib/yard/lib/yard/code_objects/base.rb
# Override this method if your code object subclass does not allow
# copying of certain attributes.
#
# @return [Array<String>] the list of instance variable names (without
#   "@" prefix) that should be copied when {#copy_to} is called
# @see #copy_to
# @since 0.8.0
Override this method if your code object subclass does not allow
copying of certain attributes.
Override this method if your code object subclass does not allow copying of certain attributes .
def copyable_attributes
        vars = instance_variables.map {|ivar| ivar.to_s[1..-1] }
        vars -= %w(docstring namespace name path)
        vars
      end
def copyable_attributes vars = instance_variables . map { | ivar | ivar . to_s [ 1 .. - 1 ] } vars -= %w( docstring namespace name path ) vars end
Override this method if your code object subclass does not allow
copying of certain attributes.
Override this method if your code object subclass does not allow copying of certain attributes .
the list of instance variable names (without "@" prefix) that should be copied when {#copy_to} is called
the list of instance variable names ( without " @ " prefix ) that should be copied when { #copy_to } is called
Array<String>
see
None
since
None