Method: YARD::CodeObjects::Base#copyable_attributes
- Defined in:
- lib/yard/code_objects/base.rb
#copyable_attributes ⇒ Array<String> (protected)
Override this method if your code object subclass does not allow copying of certain attributes.
587 588 589 590 591 |
# File 'lib/yard/code_objects/base.rb', line 587 def copyable_attributes vars = instance_variables.map {|ivar| ivar.to_s[1..-1] } vars -= %w(docstring docstrings namespace name path) vars end |