Method: YARD::CodeObjects::ClassObject#constants
- Defined in:
- lib/yard/code_objects/class_object.rb
permalink #constants(opts = {}) ⇒ Array<ConstantObject>
Returns the list of constants matching the options hash.
98 99 100 101 |
# File 'lib/yard/code_objects/class_object.rb', line 98 def constants(opts = {}) opts = SymbolHash[:inherited => true].update(opts) super(opts) + (opts[:inherited] ? inherited_constants : []) end |