mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-10 22:49:26 +08:00
15 lines
211 B
Ruby
15 lines
211 B
Ruby
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
|