File: setup.rb

package info (click to toggle)
ruby-enumerable-statistics 2.0.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,036 kB
  • sloc: ansic: 1,808; ruby: 679; makefile: 11; sh: 4
file content (12 lines) | stat: -rwxr-xr-x 303 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
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