mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-05-10 05:48:48 +08:00
17 lines
230 B
Ruby
17 lines
230 B
Ruby
# encoding: utf-8
|
|
|
|
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
|