File: setup.rb

package info (click to toggle)
ruby-enumerable-statistics 2.0.7%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 1,132 kB
  • sloc: ruby: 2,220; ansic: 1,921; javascript: 408; makefile: 8; sh: 4
file content (14 lines) | stat: -rwxr-xr-x 211 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
attr_reader :contents

def init
  if object
    type = object.root? ? :module : object.type
    sections :header, [T(type)]
  else
    sections :header, [:contents]
  end
end

def header
  tidy erb(:header)
end