Module: Ronin::Core::Metadata::References::ClassMethods
- Defined in:
- lib/ronin/core/metadata/references.rb
Overview
Class-methods.
Instance Method Summary collapse
-
#references(new_references = nil) ⇒ Array<String>
Gets or sets the reference links.
Instance Method Details
#references(new_references = nil) ⇒ Array<String>
Gets or sets the reference links.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/ronin/core/metadata/references.rb', line 75 def references(new_references=nil) if new_references @references = if superclass.kind_of?(ClassMethods) superclass.references + new_references else new_references end else @references || if superclass.kind_of?(ClassMethods) superclass.references else [] end end end |