class Twb::DocDashboard
Attributes
dashnode[R]
title[R]
type[R]
winnode[R]
Public Class Methods
new(type)
click to toggle source
# File lib/twb/docdashboard.rb, line 38 def initialize type dashboard = if @@types.include?(type) then if type[0] == 'v' then DocDashboardVert.new else DocDashboardHoriz.new end else nil end return dashboard end
Public Instance Methods
size=(size)
click to toggle source
# File lib/twb/docdashboard.rb, line 34 def size=(size) @size = size end
title=(title)
click to toggle source
# File lib/twb/docdashboard.rb, line 28 def title=(title) @title = title @dashnode['name'] = title @winnode['name'] = title end
to_s()
click to toggle source
# File lib/twb/docdashboard.rb, line 49 def to_s return @title + ' :: ' + @type end