File: setup.rb

package info (click to toggle)
yard 0.9.37-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 5,720 kB
  • sloc: ruby: 31,354; javascript: 7,608; makefile: 21
file content (13 lines) | stat: -rw-r--r-- 334 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true
def init
  sections :header, [T('docstring')], :children, :includes, :extends,
    :class_meths_list, :instance_meths_list
end

def class_meths
  @classmeths ||= method_listing.select {|o| o.scope == :class }
end

def instance_meths
  @instmeths ||= method_listing.select {|o| o.scope == :instance }
end