File: ConditionalPage.rb

package info (click to toggle)
amrita 1.0.2-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,880 kB
  • ctags: 1,363
  • sloc: ruby: 9,159; xml: 978; makefile: 116
file content (26 lines) | stat: -rw-r--r-- 334 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/local/bin/ruby

class ConditionalPage < CKComponent
	attr_accessor :isShow

	def initialize(app,parent,name,body)
		super
		@isShow = true
	end

	def inspectVersion
                if @isShow
			CKApplication.version
		else
			nil
		end
	end

	def showInspect
		@isShow = true
	end

	def hideInspect
		@isShow = false
	end
end